Here is a piece of my code
1 2 3 4 5 6 7 8 9 10 11
|
class FDatasource : public BDatasource
{
public:
//constructor
FDatasource(std::string sFilename,unsigned int uiBlocklength,
bool Loop=false);
//destructor
virtual ~FDatasource();
/* declarations of member variables and functions etc etc */
};
|
In main() I initialise an object as follows:
FDatasource ob1("Guitar.wav",128,false);
When I build , I get the following errors:
1>....obj : error LNK2019: Reference to unresolved external symbol ""public: virtual __thiscall FDatasource::~FDatasource(void)" (??1FDatasource@@UAE@XZ)" in Funktion "_wmain".
1>....obj : error LNK2019: Reference to unresolved external symbol ""public: __thiscall FDatasource::FDatasource(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,bool)" in Funktion "_wmain".
1>.... .exe : fatal error LNK1120: 2 unresolved externals.
What is the problem with my initialisation?
PS: if the problem is elsewhere I would be more than happy to share more of my code.