| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Sun, 14 Jul 2002 10:34:10 -0500 (CDT) |
| From: | Nathan LaBelle <nalabe01 AT willy DOT wsc DOT edu> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | cygwin can't link my code |
| Message-ID: | <Pine.LNX.4.33.0207141032450.29365-100000@willy.wsc.edu> |
| MIME-Version: | 1.0 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |