I've written a shared library which is partly used by a Windows application written in Visual Studio 6 (pure C).
The library works flawlessly under Linux, but under Windows something's broken somewhere (it uses some #ifdef WIN32 which might enclose something errornous).
But adding the library DLL as "additional DLLs" to the project in VS6 and running the application in debug mode, it says the DLL files does not contain debugging information.
The library is built on gcc without optimization (-O0) and with debug symbols (-g).
i586-mingw32msvc-nm -a file.dll
does show symbols, and when stripping the DLL its size cuts to half and i586-mingw32msvc-nm -a file.dll
won't show anything anymore.
But Visual Studio 6 still complains about missing debugging information. And using the "Dependeny Walker" tool it says "Debug = No" on the library.
To be able to solve the problems when running under Windows, the debugging information is critical. But how is it possible to either include them in the DLL (in a VS6 compatible way) or else extract them to a dbg/pdb file?