rem45acp
rem45acp

Reputation: 469

Using Qt STL between applications built with QtCreator and Visual Studio

I am working on a software project where the interface is designed with Qt Creator. This application links to some dynamic libs built in Visual Studio.

I have built Qt from source with Visual Studio, but since the libraries in Qt Creator are built using MinGW, is there any danger of passing Qt STL objects between the application and the DLL, considering the fact that they are both built with different compilers?

The only thing I can think of is conflicts between debug and release.

More info: the only Qt classes that the DLL will use is QString, QVector, and QMap.

EDIT: PS: What about the standard stl? Any concerns mixing the binaries between MinGW and MSVC?

Upvotes: 0

Views: 536

Answers (1)

Kerrek SB
Kerrek SB

Reputation: 476950

You cannot. There is no standardized C++ ABI, and the ABIs of GCC and MSVC are certainly not compatible -- the ABIs aren't even compatible between different versions of MSVC. Build your entire library with the compiler that you want to use.

Upvotes: 4

Related Questions