Reputation: 2737
I have some static libraries in the form of .a files, and accompanying header (.h) files. How can I tell the linker Visual Studio 2012 Windows Desktop Express to reference these files so that I don't get "unresolved external symbol" errors when I try to build?
Upvotes: 1
Views: 7399
Reputation: 1180
Apart from this make sure you are in the correct configuration platform while building (x86 vs x64) and it is same as the one your library uses.
Upvotes: 7
Reputation: 36537
As far as I'm aware, you can't. They're usually using a different internal binary format the linker won't be able to understand. In a similar way, MinGW won't be able to use Visual Studio's lib files (except when using an additional tool to convert them).
You'll have to recompile the library from source or obtain library files that are compatible with Visual Studio.
Upvotes: 0