在 VC 中使用单独的库进行调试和发布
我正在下载 GLFW 以与 Visual Studio 2010 一起使用。我看到下载的文件有一个单独的文件夹用于调试和发布版本(每个文件夹有两个 Lib 和一个 DLL),但两个文件夹中的文件名相同。我应该如何配置 Visual Studio 来选择正确的文件,因为我预计重命名 Lib 或 DLL 会产生干扰。我的研究相对没有成果,我认为这可能与 ifdef 命令或其他东西有关。提前致谢。
I'm downloading GLFW for use with Visual Studio 2010. I see that the download has a separate folder for Debug and Release builds (each folder has two Libs and one DLL), but the filenames in both folders are the same. How should I configure Visual Studio to pick the right file, since I would expect that renaming a Lib or DLL would interfere. My research has been relatively unfruitful, and I think it may have to do with ifdef
commands or something. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio 构建属性(包括搜索文件的目录)都是特定于构建配置的。在项目配置对话框中,只需按下拉菜单即可从“调试”切换到“发布”。您更改的设置将影响特定的构建配置,而不影响其他配置。
如果您没有此下拉菜单,那么您正在使用非高级界面,任何人都不应该使用该界面。切换到高级界面。
Visual Studio build properties (including the directories where it searches for files) are all build configuration specific. On the project configuration dialog, just press the drop-down to switch from Debug to Release. The settings you change will affect that particular build configuration and no others.
If you don't have this dropdown, then you're using the non-advanced interface, which no human being should ever use. Switch to the advanced interface.