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 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: WinMain in an own static lib -> _WinMain AT 16 undefined reference ?! ;.( |
Date: | Thu, 4 Mar 2004 09:17:48 -0500 |
Message-ID: | <AE2AA130827456459AA497E8C9D6EA00412E2A@pauex2ku02.ags.agere.com> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Williams, Gerald S (Jerry)" <gsw AT agere DOT com> |
To: | "G.-B. Hauck" <gbhauck AT gmx DOT de>, <cygwin AT cygwin DOT com> |
X-OriginalArrivalTime: | 04 Mar 2004 14:17:49.0324 (UTC) FILETIME=[7913D4C0:01C401F3] |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i24EI4I1020181 |
G.-B. Hauck wrote: > g++ -mwindows -mno-cygwin -o test.exe test.o -L./ -lmaintest > > /usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/../../../../i686-pc-min > gw32/lib/libmingw32.a(main.o)(.text+0x9b):main.c: undefined > reference to `_WinMain AT 16' > collect2: ld returned 1 exit status This isn't specific to Cygwin. Modules are only pulled from a library if something else refers to them (the underlying MINGW run-time reference doesn't count!). Try adding -u_WinMain AT 16 to the command line. -Jerry -- 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 |