8

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

0

3 Answers 3

7
Sign up to request clarification or add additional context in comments.

2 Comments

You don't need an import lib if you load the DLL with LoadLibrary() or LoadLibraryEx().
Your links are 404 now. It would be preferable for the answer to cover the basics of what the links say , and offer the links as supporting reference.
2

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

Comments

0

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.