Jesse Vogt
Jesse Vogt

Reputation: 16529

Use libraries compiled with visual studio in an application compiled by g++ (mingw)

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

Upvotes: 8

Views: 5435

Answers (3)

BCS
BCS

Reputation: 78605

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.

Upvotes: 0

Jesse Vogt
Jesse Vogt

Reputation: 16529

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

Upvotes: 2

Martin B
Martin B

Reputation: 24140

Upvotes: 7

Related Questions