This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
cygwin can't link my code
- From: Nathan LaBelle <nalabe01 at willy dot wsc dot edu>
- To: <cygwin at cygwin dot com>
- Date: Sun, 14 Jul 2002 10:34:10 -0500 (CDT)
- Subject: cygwin can't link my code
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/