views:

1048

answers:

3

Is it possible to use a library compiled by visual studio in an application compiled by g++ (mingw) on Windows?

+7  A: 
Martin B
You don't need an import lib if you load the DLL with LoadLibrary() or LoadLibraryEx().
Rob K
+1  A: 

Also see the discussion for question QT/mingw32 undefined reference errors… unable to link a .lib

Jesse
A: 

From a technical standpoint, there isn't any reason you shouldn't be able to (it's all x86 after all). As for in practice, there are a number of tools for converting between library and object file formats. If you can find the correct one and deal with any naming, calling convention and structure layout differences (I don't know that you will or won't need to deal with any of that) you should be good.

BCS