Soo Wei Tan
Soo Wei Tan

Reputation: 3371

Linking VS2005 static library with gcc in Windows

Is it possible to link a static library built with VS2005 into an application that is to be built with gcc (in Cygwin)?

Upvotes: 1

Views: 505

Answers (3)

coanor
coanor

Reputation: 3962

I used to link a *.dll in G++ which compiled with a *.lib, It works well currently, but I'm not sure about static library, May be you can compiled it in dll for a try. Good luck.

Upvotes: 0

Max Lybbert
Max Lybbert

Reputation: 20037

Unlike UNIX where there was no standard C++ ABI for years, Windows has had a standard C++ ABI from the beginning. So, yes, it's possible. But it can be difficult.

Upvotes: 2

kostiak
kostiak

Reputation: 6531

Theoretically it should work, but I would suggest to just try it.

Upvotes: 0

Related Questions