cygwin:g++linker problems

Brian Dessent brian@dessent.net
Fri Oct 17 16:52:00 GMT 2008


jayshankar nair wrote:

> The libraries is build with gcc(in cygwin environment). Something to do with flags or packages.

Shared libraries have the extension .dll on Windows, not .so. 
Specifying -lf will find your library if you named it cygf.dll or
libf.dll, or if you created an import library libf.dll.a.  (It will find
other variants as well, like f.lib.  Read the linker manual for the full
list.)

If you want to name a DLL with a nonstandard extension like .so there is
nothing stopping you, but you can't expect the -l switch to find it if
you do.  You can specify it to the linker by filename directly though.

Brian

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