Hello
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:
Code:
#if !defined(DATASET_H)
#define DATASET_H
class DataSet
{
public: .....
private......
}
#endif
The file dataset.cpp with:
#include "dataset.h"
DataSet::DataSet
{
}
.... and the other member functions declarations.
and the file main.cpp with
#include "dataset.h"
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.