Hi,
I am trying the compile simple code and getting the error ,
I have DerivedY.h , and Derived.cpp . and other file test1.cpp .
DerivedY.h cantains all the decleration of the function and DerivedY.cpp cantains
all the defination of the function . i have DerivedY.h decleared in test1.cpp .
But when i compile the test1.cpp code i get the following error .
please help me understand this.
test1.cpp:(.text+0x8b): undefined reference to `CDerivedY::CDerivedY()'
test1.cpp:(.text+0x9e): undefined reference to `CDerivedY::set(int)'
test1.cpp:(.text+0xa9): undefined reference to `CDerivedY::read()'
test1.cpp:(.text+0xef): undefined reference to `CDerivedY::~CDerivedY()'
test1.cpp:(.text+0x105): undefined reference to `CDerivedY::~CDerivedY()'
collect2: ld returned 1 exit status