This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin:g++linker problems
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Oct 2008 09:51:24 -0700
- Subject: Re: cygwin:g++linker problems
- References: <363024.77609.qm@web55805.mail.re3.yahoo.com>
- Reply-to: cygwin at cygwin dot com
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/