Search code examples
c++visual-c++mingwstatic-librariesstatic-linking

Mingw static lib used in a MSVC project


Is it possible to use a static library that was compiled with mingw in a visual studio MSVC project? Both projects are C++. I haven't found a clear answer on that. Note that I'm talking about a static library and not a DLL.


Solution

  • No, it is not possible due to ABI for c++ is not standard and gcc's ABI differs from MSVC++ one.