Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   undefined reference to Struct (http://www.go4expert.com/forums/undefined-reference-struct-t23679/)

heidik 26Oct2010 19:16

undefined reference to Struct
 
Code:

breachmonitor.cpp:(.text+0x17ce): undefined reference to `BreachMonitor::Breach::Breach()'
Can anyone please tell me what does it mean? I have created a struct and then declared its variable like

Code:

Breach wb;
and it isnt compiling. The structure has default constructor (no arguments) and another one for initialization. It has also got two methods.

Code:

bool operator==(const Breach& p) const
bool operator<(const Breach& p) const



All times are GMT +5.5. The time now is 16:23.