我有一个库foo.a
编译在MinGW
。它应该在Windows中工作,因为它是跨平台的库(LibVNCServer
)。配置时,我使用了标志-static
和--disable-shared
。 但是,当我试图包括在Visual Studio foo.a
,我得到了错误,如这些:如何在Visual Studio中使用用MingW编译的库?
unresolved external symbol ___chkstk_ms
unresolved external symbol _snprintf
unresolved external symbol _jpeg_CreateCompress
我如何编译源文件中的MinGW使得所得到的库文件将工作在Windows?我只需要库,所有依赖包括,所以我可以在Windows上的Visual Studio中无误地链接它。请帮助。
这可能是有趣的:https://github.com/leopucci/libvncserverWindows – drescherjm 2015-03-19 11:40:33