delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | ericblake AT comcast DOT net (Eric Blake) |
To: | Markus Heiden <markus AT markusheiden DOT de>, cygwin AT cygwin DOT com |
Subject: | Re: Problems with linking and std c++ library when using -mnocygwin |
Date: | Tue, 04 Apr 2006 02:31:39 +0000 |
Message-Id: | <040420060231.26081.4431DA8B00006227000065E122073007930A050E040D0C079D0A@comcast.net> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> cygwin can compile the .cpp files but when linking everything together, > always "undefined reference" messages appear for the line with close(): > > ---------- > g++ -mno-cygwin -w -march=i686 -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp > -I"./someDir" > -c -o x1.o x1.cpp > ... > g++ -mno-cygwin -fPIC -shared -o xxx_i686.dll x1.o x2.o x3.o ... -lm Using -mno-cygwin means you are no longer compiling a cygwin app, but using the MingW cross-compiler bundled with cygwin, but not fully supported on this list. You are better off asking on the mingw list in that case. One thing is for certain - you cannot mix files compiled for cygwin with files compiled with -mno-cygwin; if that has happened, that would explain the link errors you are seeing. -- Eric Blake -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |