[Mingw-users] lesson: don't have a dll and a lib in the same library path
- Date: Thu, 20 Dec 2007 14:17:59 -0800
- From: Brandon Sneed <brandon@xxxxxxx>
- Subject: [Mingw-users] lesson: don't have a dll and a lib in the same library path
This is just to document this in case anyone else runs into it...
I had to make a library (.a) from a vendor DLL. I copied the DLL to a
temp directory, created a def for it in the same directory and used
dlltool to create a library from said DLL. i think tried to compile
and link with that library and LD generated errors for every function
in the DLL basically saying it couldn't find _SomeFunc@n x300 or so
imports.
After 4 days of fighting with it, searching google (maybe with the
wrong search terms) etc. on a lark, i deleted the DLL and wala, it all
linked fine.
So.. if this is you (person reading the archives), delete that DLL!!!
I had previously thought that while linking to DLL's was possible, it
required command line parameters other than "-l<library>".
Brandon Sneed
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users