This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to 'class::function' error

On Thu, 9 Oct 2003, Kai Xu (Kevin) wrote:

> I guess I can only post a example of the errors here, as the main program is
> about 2k lines and compiler doesn't tell where the error occurs.
> I am not good at c++ and this is not my program, so please let me know
> if I am not posting the right thing or anything is missing.
> Cheers,
> Kevin
> The error message:
> undefined reference to `NList::insert(Cone*, double, int)'
> [snip]

Ok, so it's a linking error.  Is the file that defines this function
linked into the resulting executable?  Can you please post the exact
command used to invoke the compiler to link the final executable?
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]