delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/06/14:29:39

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: <4.3.1.2.20010806142610.01672828@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 06 Aug 2001 14:27:42 -0400
To: "Brian Michael Genisio" <genisiob AT pilot DOT msu DOT edu>,
cygwin AT sources DOT redhat DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: VC++ .lib files with g++ ?
In-Reply-To: <200108061822.f76IM5D17890@pilot04.cl.msu.edu>
Mime-Version: 1.0

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


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