我有一個庫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