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)" 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: <48864AB5 DOT 6D177B25 AT dessent DOT net> <488678FD DOT 1F211496 AT dessent DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 -----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/