delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/23/18:03:06

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4887AA6D.9000605@users.sourceforge.net>
Date: Wed, 23 Jul 2008 17:02:21 -0500
From: "Yaakov (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: .s file causing problems when linking
References: <a07c15f00807221329k544d2079ia14421e724fe6fd AT mail DOT gmail DOT com> <48864AB5 DOT 6D177B25 AT dessent DOT net> <a07c15f00807221617o20061c0dy135f955181472469 AT mail DOT gmail DOT com> <488678FD DOT 1F211496 AT dessent DOT net> <a07c15f00807231443i3ce6b0c2qf82f305b78213761 AT mail DOT gmail DOT com>
In-Reply-To: <a07c15f00807231443i3ce6b0c2qf82f305b78213761@mail.gmail.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Nathan Thern wrote:
| That sounds great. However, I can't get it to work:
| "gcc -o scheme.exe *.o -Wl,--out-implib,scheme.dll.a" creates a
| working scheme.exe, but silently doesn't create scheme.dll.a
| and
| "gcc -shared -o scheme.exe *.o -Wl,--out-implib,scheme.dll.a" creates
| scheme.dll.a and creates a scheme.exe that dies with "-bash:
| scheme.exe: Permission denied" upon invocation.
|
| I'm moving forward by just running gcc twice, but what am I missing?

gcc -Wl,--export-all-symbols -Wl,--out-implib,libscheme.dll.a -o
scheme.exe *.o ...

Without --export-all-symbols, ld won't export any symbols when creating
an executable; see http://sourceware.org/bugzilla/show_bug.cgi?id=6744
for details.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkiHqmwACgkQpiWmPGlmQSMKwQCfSuQxLh/ntX3hyuhV2W4ywX7i
k0MAoKem/ORnTo8dcbCrpUblH0i+zlTn
=dJrz
-----END PGP SIGNATURE-----

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019