Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Subject: cygwin can't link my code Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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/