i have a problem.... i am trying to split a cpp file, where i have the class declaration, class implementation and main, into three separate files.
So i have created dataset.h with the following code:
and the file main.cpp with
The file dataset.cpp with:
.... and the other member functions declarations.
and the main function, where i call some public member functions of class DataSet. When i compile, it says:
Linker error: undefined symbol dataset::function1 in module main
and the same for all the functions i try to call.
What did i do wrong? The program worked perfectly before trying to split it.
Thank you very much.