1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

undefined reference to Struct

Discussion in 'C' started by heidik, Oct 26, 2010.

  1. heidik

    heidik New Member

    Joined:
    Oct 23, 2010
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    0
    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
    
     

Share This Page