From: NightStrike <nig...@gm...> - 2011-02-04 18:14:03
|
On Fri, Feb 4, 2011 at 2:48 AM, Zeno Davatz <zd...@gm...> wrote: > Dear Tor > > On Fri, Feb 4, 2011 at 8:35 AM, Tor Lillqvist <tm...@ik...> wrote: >>> Is there any information for getting ldd into MinGW so that the user >>> can list the symbols of a shared library. >> >> ldd is specific to some Unix platorms using ELF. The way Windows DLLs >> work is quite different, even if superficially also shared libraries. >> Of course there are lots of tools to see what symbols are exported >> from a DLL. As a user of the MinGW toolchain, try objdump or pexports. > > Thank you, I am trying that now. > > Do you have any hints how I should proceed if I need to link a nmake > compiled file against a MinGW compiled file? > > I need to resolve a bunch of > > _imp__* > > errors that my MinGW make outputs. The software compiles fine but > linkage between nmake compiled DLL and the MinGW compiled Lib does not > work. > > Earnie said I need a .a file but how do I create that from a nmake > compiled file? > > I did read this: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs > > Thank you for your Feedback. > > Best > Zeno You can run gendef against a dll to generate a .def that goes through dlltool to generate a .a import lib to use the dll. That was a mouthful :) |