简体   繁体   English

在 VC++ 中使用单独的库进行调试和发布

[英]Using Separate Libs for Debug and Release in VC++

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.我正在下载 GLFW 以与 Visual Studio 2010 一起使用。我看到下载有一个单独的文件夹用于调试和发布版本(每个文件夹都有两个 Lib 和一个 DLL),但两个文件夹中的文件名是相同的。 How should I configure Visual Studio to pick the right file, since I would expect that renaming a Lib or DLL would interfere.我应该如何配置 Visual Studio 以选择正确的文件,因为我希望重命名 Lib 或 DLL 会干扰。 My research has been relatively unfruitful, and I think it may have to do with ifdef commands or something.我的研究一直比较没有成果,我觉得可能跟ifdef命令什么的有关。 Thanks in advance.提前致谢。

Visual Studio build properties (including the directories where it searches for files) are all build configuration specific. Visual Studio 构建属性(包括它搜索文件的目录)都是特定于构建配置的。 On the project configuration dialog, just press the drop-down to switch from Debug to Release.在项目配置对话框中,只需按下下拉菜单即可从 Debug 切换到 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.切换到高级界面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM