This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking with Microsoft-provided .LIB files
- To: "Thomas Womack" <tom at womack dot net>
- Subject: Re: Linking with Microsoft-provided .LIB files
- From: Mumit Khan <khan at nanotech dot wisc dot edu>
- Date: Mon, 15 Nov 1999 13:46:32 -0600
- cc: gcc at egcs dot cygnus dot com
"Thomas Womack" <tom@womack.net> writes:
> Is there a way, probably using objdump and a thin wrapper to correct the
> name munging, of getting mingw32 to link with DDRAW.LIB so that I can
> compile graphical Windows programs using the good optimisation gcc-2.95
> provides?
This is not a compiler issue, but rather a assembler/linker issue. The
current binutils (as/ld/etc) cannot link against MSVC created archives
(ie., .lib files).
As far as DirectDraw is concerned, I suggest you look through the archives
of the Cygwin mailing list [1], and if you don't find the information,
post a note there. It's a matter of creating a GNU compatible archive
(.a file) using dlltool, and then linking against that instead.
[1] See http://sourceware.cygnus.com/ for info on Cygwin mailing lists.
The pointer to the mailing list archive is there as well
Regards,
Mumit