Add existing C++ files to Kdevelop project
Hi.
I've made a "simple C++ hello world" project in Kdevelop-3.1.0 (using kde 3.3 in SUSE 9.2) and I want to add my existing .h and .cpp files to the project but I don't know the correct way. Now when I include the related header files above "main" method and try to make an instance from the class, I receive an error (undefined refrence to <Constructor of the class >).
It seems that the cpp file doesn't link to header file.
For example:
#include <iostream.h>
#include "Parent/Parent.h"
int main(){
Parent p; //Error refers here (undefined refrence to Parent() )
cout<<"Hello World"<< endl;
return 0;
}
Can any one help me about it?
Thanks
Siavash
|