在 Eclipse/CDT/gcc 中使用 Visual Studio 构建的 .lib

发布于 2024-08-18 05:25:30 字数 433 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守护在此方 2024-08-25 05:25:30

在这个页面中,作者给出了几种实现你想要的方法

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文