在 Eclipse/CDT/gcc 中使用 Visual Studio 构建的 .lib
我在 Windows 上使用 gcc 编译程序时遇到一些问题,该程序最初是使用 Visual Studio 开发的。到目前为止,我能够解决几乎所有问题,例如缺少头文件等,但现在我陷入了最后一件事:gcc 无法链接到我的程序使用的第三方库之一(FlyCapture2.lib)。它告诉我它在那里找不到任何函数/方法。我已经检查过该库是否实际上位于库路径上之类的东西,但它仍然不起作用。
我搜索了一下,发现这可能与 Microsoft 编译器创建的 .libs 格式有关。有什么方法可以将这样的库转换为与 gcc 兼容吗?还有什么我可能错过的吗?
(我已经找到了这个类似的问题,但它的解决方案赢了不在这里工作)
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 checked 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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这个页面中,作者给出了几种实现你想要的方法
In this page the author gives several ways to achieve what you want