如何在 eclipse c++ 中连接库

发布于 2024-10-10 06:29:11 字数 109 浏览 0 评论 0原文

当我创建新的/c++项目/调试/高级设置时,接下来我该怎么办?在包含选项卡中,我包含了库的路径?为什么是“启动失败。找不到二进制文件”和“ 对‘WinMain@16’的未定义引用,第 0 行,外部位置:”

When I create new/c++ project/debug/advanced setting, what do I do next? In the include tab, I have include the path to the libraries? why is "Launch failed. binary not found" and "
undefined reference to `WinMain@16' ex line 0, external location:"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

尘世孤行 2024-10-17 06:29:11

听起来您需要将正确的库路径添加到您的项目中。右键单击您的项目并选择属性。这将打开属性编辑器。在 C/C++ Build|Settings 下,您可以使用 Linker 部分来设置库。我有一个关于单元测试的截屏视频,但您可以跳过前两分钟的大部分时间,大约 1:50 在我演示添加包含路径的过程中,大约 2:50 在我演示添加库路径中。因此,如果您有几分钟时间,可以观看以下视频。

http://www.youtube.com/watch?v=LnAuAJfMRy8

Sounds like you need to add the proper library paths to your project. Right-click your project and select Properties. This will bring up the property editor. Under the C/C++ Build|Settings you use the Linker section to set up libraries. I have a screencast on unit testing but you cans skip most of the first two minutes, around 1:50 in I demonstrate the process of adding include paths, around 2:50 in I show adding library paths. So if you have a few minutes you can watch the following video.

http://www.youtube.com/watch?v=LnAuAJfMRy8

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