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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice