I was trying to find out where the procudure for how to link dll
built by other compilers.
I have a situation where I need to link to a dll which i dont have source
for. With this dll I was provided with examples for MSVC and borland.
In the MSVC example there is a .lib file for the dll i need to use.
I ran nm on this .lib and found it shows all symbols fine, which means
i can use it for linking in gcc.
so linking is very simple: gcc -o mytest.exe mytest.o file.lib
I'm using mingw 2.95.3-6 and it links and runs without problems.
Mingw seems to treat a msvc .lib the same as youd think of a libfoo.a
in the gcc world.
What I cant find is how this is documented. The "old" mingw faq
goes into all this stuff about using pexports to generate a .def, and
dlltool to generate lib.a which is unecessary and probably wont work anyways.
I cant find where the current faq or documentation talks about using
other compiler's .lib to use their dlls. Its seems like something that
should be there.
However, I should be thankful it works in the first place :)
Get latest updates about Open Source Projects, Conferences and News.