Visual C++ 2008年;将库添加到编译过程中?

发布于 2024-10-04 19:43:03 字数 131 浏览 0 评论 0原文

我有一个需要 fmod 库的项目,我需要让编译器在我安装它的目录中搜索源代码。这几乎是我第一次与 C++ 编译过程交互,所以我完全迷失了。我使用什么设置来告诉它图书馆在哪里?

编辑:要明确的是,我说的是 fmod 3rd 方音频库。

I have a project that needs the fmod library, and I need to have the compiler search the directory I installed it in for the source code. This is pretty much my first time interacting with the C++ compilation process, so I'm completely lost. What settings do I use to tell it where the library is?'

Edit: to be clear, I'm talking about fmod the 3rd party audio library.

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

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

发布评论

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

评论(2

你的笑 2024-10-11 19:43:03

要包含额外的第三方库:

  • 右键单击“解决方案资源管理器”中的项目,然后选择“属性”,
  • 将库添加到“配置属性”->“配置属性”中的列表中。链接器->输入->其他依赖项
  • 将库路径添加到配置属性->链接器->一般->其他库目录

To include extra third-party libraries:

  • right click the project in Solution Explorer and select Properties
  • add the library to the list in Configuration Properties -> Linker -> Input -> Additional Dependencies
  • add the library path to Configuration Properties -> Linker -> General-> Additional Library Directories
云仙小弟 2024-10-11 19:43:03

其他帖子对如何与 Visual Studio 代码编辑器链接提供了很好的指导。
然而,可能值得一提的是,其他构建工具(不是 Microsoft 代码编辑器)使您能够跨平台构建和链接。

特别是 boost 构建工具 bjam 做得非常好: http ://www.boost.org/doc/tools/build/doc/html/index.html

这是一个出色的构建工具,用于以跨平台方式整理简单文本文件(而不是界面的一部分)中的链接。即,要在 microsoft 编译器和 gnu 编译器之间切换,只需更改一个文件中的一个单词。

如果您是 C++ 新手,那么 boost 库值得更广泛地指出。请参阅 http://www.boost.org/

一切顺利

祝汤姆

The other posts give good guidance on how to link with the visual studios code editor.
It might be worth mentioning, however, that other build tools (not the Microsoft code editor) enable you cross-platform building and linking.

In particular, the boost build tool, bjam does this very nicely : http://www.boost.org/doc/tools/build/doc/html/index.html.

This is an excellent build tool for sorting out your linking in simple text files (rather than part of an interface) in a cross platform way. I.e. to switch between microsoft compiler and the gnu compiler requires you to change just one word in one file.

If your new to c++, then the boost libraries are worth pointing out more generally. See http://www.boost.org/.

All the best

Tom

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