cygwin can't link my code

Nathan LaBelle nalabe01@willy.wsc.edu
Sun Jul 14 18:47:00 GMT 2002


Im running winxp/latest cygwin and im getting this
message
when trying to execute a code related to a third-party library (i don't
know if it's cygwin thats broke or the library):
$ g++ test3.cpp
/cygdrive/c/DOCUME~1/N/LOCALS~1/Temp/ccfQu2EA.o(.text+0x2d):test3.cpp:
undefined reference to `graph::graph(void)'
/cygdrive/c/DOCUME~1/N/LOCALS~1/Temp/ccfQu2EA.o(.text+0x44):test3.cpp:
undefined reference to `graph::~graph(void)'
/cygdrive/c/DOCUME~1/N/LOCALS~1/Temp/ccfQu2EA.o(.text+0x6b):test3.cpp:
undefined reference to `graph::~graph(void)'
collect2: ld returned 1 exit status

when executing this code:

#include <GTL/graph.h>
void main()
{ graph G; }

As you can see, the code compiles but can't link to the library.
Apparently everything installed correctly, but if that was the case how
come i cant compile anything with a reference to anything in the library?
I dont know if this is a problem with the library or a problem with cygwin
?

Thanks,

N.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list