This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: VC++ .lib files with g++ ?
- To: "Brian Michael Genisio" <genisiob at pilot dot msu dot edu>, cygwin at sources dot redhat dot com
- Subject: Re: VC++ .lib files with g++ ?
- From: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Date: Mon, 06 Aug 2001 14:27:42 -0400
At 02:22 PM 8/6/2001, Brian Michael Genisio wrote:
>Hey all,
>
>I am wondering if it possible to link up against a MS VC++ lib library with
>g++?
>
>
>I have tried the following :
>
>g++ myfile.cpp -ldsound -L./dx/lib
>
>where dsound.lib exists in the ./dx/lib directory. This does not complain
>about not being able to find the dsound library, but it does not seem to link
>against it.
>
>I still get undefined references to functions defined in that lib.
>
>Is there a way to compile .lib libraries with your code?
Have you seen and tried:
How do I link against .lib files?
http://www.cygwin.com/faq/faq_4.html#SEC91
You should be able to short-cut this process by adding dsound.lib to your
link stream and removing -ldsound though...
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/