开发者

Using a .lib built with Visual Studio in Eclipse/CDT/gcc

开发者 https://www.devze.com 2022-12-17 04:56 出处:网络
I am having some trouble compiling a programm with gcc on windows which was initially developed with Visual Studio. So far I was able to resolve almost all problems like missing header files and such,

I am having some trouble compiling a programm with gcc on windows which was initially developed with Visual Studio. So far I was able to resolve almost all problems like missing header files and such, but now I am stuck at one last thing: gcc fails to link to one of the third party libs my program uses (FlyCapture2.lib). It tells me that it does not find any of the functions/methods there. I already c开发者_JAVA技巧hecked if the library is actually on the library path and that sort of things, but it still does not work.

I searched a bit around and learned that it might have something to do with the format of .libs created with the Microsoft compiler. Is there any way to convert such a lib to be compatible with gcc? Anything else I might have missed?

(I already found this similar question, but its solution won't work here)


In this page the author gives several ways to achieve what you want

0

精彩评论

暂无评论...
验证码 换一张
取 消