This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin:g++linker problems


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]