.s file causing problems when linking

Yaakov (Cygwin Ports) yselkowitz@users.sourceforge.net
Wed Jul 23 22:02:00 GMT 2008


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



More information about the Cygwin mailing list