delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/06/13:19:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 6 Feb 2002 13:18:51 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: DirectX8/DirectInput + cygwin
Message-ID: <20020206181851.GF11730@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <002301c1aef8$228e5440$2801a8c0 AT dcuthbert2k> <3C610F7E DOT 5020306 AT syntrex DOT com> <20020206172903 DOT GE31367 AT redhat DOT com> <3C6171A9 DOT 2080702 AT syntrex DOT com>
Mime-Version: 1.0
In-Reply-To: <3C6171A9.2080702@syntrex.com>
User-Agent: Mutt/1.3.23.1i

On Wed, Feb 06, 2002 at 07:10:49PM +0100, Pavel Tsekov wrote:
>Christopher Faylor wrote:
>>On Wed, Feb 06, 2002 at 12:11:58PM +0100, Pavel Tsekov wrote:
>>>Dylan Cuthbert wrote:
>>>>I am linking directly with the .lib files supplied by Microsoft, and
>>>>all the Directx8 GUID references seem to link fine so does anybody have
>>>>any idea what the problem might be?
>>>>
>>>Why ?  Link against those in /usr/lib.  gcc doesn't understand the MS
>>>export libraries.
>>
>>Actually, gcc/ld should understand non-c++ import libraries.
>
>Is this a new feature or I was missing something all the time ?  What's
>the point of tools which build .a files from dlls ?

If you have an existing .lib import library it should work fine with ld.
This has been the case for years.

This is not to say that there haven't been bugs over the years, but AFAIK,
there aren't any in the current version of cygwin.

If it helps you can rename foo.lib to libfoo.a so that you can add -lfoo
to the command line.

You can also link against the dll itself, in many cases:

gcc -o foo.exe foo.c blah.dll

cgf

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