delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/06/15:59:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <A7AF87D6496DD411B50A00D0B76DEB2C1E6F7A@EX2BEBREYMBX02>
From: Darius DOT Clynes AT cec DOT eu DOT int
To: cygwin AT cygwin DOT com
Subject: RE: VC++ .lib files with g++ ?
Date: Mon, 6 Aug 2001 21:52:11 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Try changing the order of the libraries to link with:

g++ myfile.cpp  dxguid.lib dsound.lib

I have noticed that this sometimes make a difference.

Also complete path names in this style
C:/Program\ Files/Oracle/PRO22/LIB/MSVC/SQLLIB18.LIB

I have found helps.

by the way if these are sound libraries,
i would be interested in knowing how you use them?
and if they work for direct sound, etc.

hope this helps.




>-----Original Message-----
>From: Brian Michael Genisio [mailto:genisiob AT pilot DOT msu DOT edu]
>Sent: Monday, August 06, 2001 9:10 PM
>To: lhall AT rfk DOT com
>Cc: cygwin AT sources DOT redhat DOT com
>Subject: Re: VC++ .lib files with g++ ?
>
>
>Yes, I have tried that... It is a very cryptic solution... I 
>am not sure what
>it is telling me to do, or how.
>
>I have also tried your suggestion:
>g++ myfile.cpp dsound.lib
>
>This only worked for one of my functions.  Then, I move on to 
>other .lib files,
>such as the next undefined reference I have, which is defined 
>in dxguid.lib.
>These do not get found... neither do any of he rest I am 
>trying.  Any other
>ideas?
>
>
>Thanks,
>Brian
>
>
>>
>> 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 AT rfk DOT com
>> RFK Partners, Inc.                      http://www.rfk.com
>> 118 Washington Street                   (508) 893-9779 - RFK Office
>> Holliston, MA 01746                     (508) 893-9889 - FAX
>>
>>
>
>
>--
>---------------------------
>Brian Genisio
>genisiob AT pilot DOT msu DOT edu
>
>
>
>
>
>
>--
>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/
>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019