static library in linux and Cygwin
Mon Jun 12 13:24:00 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
According to cxf on 6/11/2006 9:40 PM:
> I compile the static library in cygwin just like in linux,but when I
> link my program with the Library, it did not find the function included
> in the library. Are there any difference between linux and cygwin when
> using and compiling the static library.
Details, please. What link line did you use, and what was the error?
Most likely, you made the rookie mistake of not listing the -l options
last. Linux allows lazy linking, where symbols can be undefined if not
found at link time (which is what happens if you list the -l first), but
Windows .dlls are not so forgiving.
Life is short - so eat dessert first!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v220.127.116.11 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin