delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=h6+4+1sk+dO0j5pdqsIczoUOo4qaeSXd+OokLIfMvVw6lFFho62re | |
BpdBG4Hw2eKOrIexpAjLwzPQ3jAaapY5lsPylLMFhoxOhWJMe6UuH3PZ0xWlsAwV | |
DJYvKEvEMT8T4HP+WrsTt/jYUDh/aQ9fXQBi+CVUIrxXEGTMxOF08c= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=C7paLdrzrFvzGbOjEM07pjuigyk=; b=aDMjAgr1I5JRYl5E+caKdS1AAUJL | |
wZwml2Q2OWUCM/gmD/k+5PrmQSkcwol45OyxNcL5ym1PDCfIhbmJgKvLBNP0eO1x | |
mRPaFyl55lbsMn2BdmTwiGa/ouLwQj5cMW6audFL24O/UkfgSOIGid8QfHnqvZKz | |
2e+OSzV3psvukfg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
X-Spam-SWARE-Status: | No, score=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED autolearn=ham version=3.3.2 |
Date: | Fri, 16 Aug 2013 12:48:48 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: GNU ld -O option breaks compilation |
Message-ID: | <20130816104848.GG2562@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAKw7uVjHcZbuxhAYjtBeZ=kiNF2hhuWUNLRuo+y8t5tZsj7f6Q AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAKw7uVjHcZbuxhAYjtBeZ=kiNF2hhuWUNLRuo+y8t5tZsj7f6Q@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
X-Virus-Found: | No |
--aPdhxNJGSeOG9wFI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 16 10:50, V=C3=A1clav Zeman wrote: > I am getting compilation error when I try to use the GNU ld's -O option: >=20 > `--> cat test.c > int > main () > { > return 0; > } >=20 > `--> gcc -Wl,-O -o test test.c > /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/libcygwin.a(libcmain.= o): > In function `main': > /usr/src/debug/cygwin-1.7.24-1/winsup/cygwin/lib/libcmain.c:39: > undefined reference to `WinMain' > /usr/src/debug/cygwin-1.7.24-1/winsup/cygwin/lib/libcmain.c:39:(.text.sta= rtup+0x7e): > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `WinMain' > collect2: error: ld returned 1 exit status Per the ld info pages, the -O option is only designed to work for ELF shared libraries so far. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --aPdhxNJGSeOG9wFI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJSDgOQAAoJEPU2Bp2uRE+gnJ8QAKPZhAqgBY442vHzlNF0PL96 6oPoK5H9alxHlzTD87aqcL8OErcoYHm2vUTZgqk3bJH4k6wipoqw5DJlFU016nqe gWV80UE8Klx8YT1h5gP08TTqHGkhpRhjF650Lm7Ugzpmf25ZgG6OifHF0R0sTtHI fTFv4prczEE9KvNuvK/0icSt7XdoCRuVRYUH8eUnEMZRBrb9Yo3cjKXI+BcmoTqC tk9Z2roW+Ecl8B+5Fu7XFHqB4VXHDyeFa3/4U2BK7HeSQXSJUb4rdKiN/RYdf+5b 1BnMuMHUy55dV8pM7LgqVD2QHffqs+nZFWp0dZdh5IKkiXJ1rrPr+FTkd51hI79p qpUxROO7IKE5fFu0APyW4TpggXp0WvRdmapF1uZzxd5RXWD9pD7Ah7V2gsERdbNo k23czRSvpEfDxPwvwNpw8SFpOyRKDuMZM9ml/VD1k56y6l8dEZwJfe7/81Y1Z89Z O+SF4nV7Pp6ZoQ08zR8gNJliJv1mOrhuFbM96qodAwhFItpzcDwXhP8C7C1vXyxq C5eZDww4mC+zKH8ogbazoYitrmfgOkmoSEI+eTamSl4olsZC8nD1xVdM+2vJAhwB 6eVBLfOnRHAHHEi8K3T4EFLHDaKBoeWaIuaPGayHpQiObJGym1mlb6jPZqFZ0HOC TDqmOUvB+sh1HMiEEa39 =w+C2 -----END PGP SIGNATURE----- --aPdhxNJGSeOG9wFI--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |