这是对此问题给出的特定答案的问题。试图让 Qt 5.0.2 64 位版本在 Windows 7、64 位 PC 上的 Microsoft Visual Studio 2012 中构建我的项目。我怀疑我有一个 32 位版本的库,即使它声称是 64 位版本。无论如何,要直截了当:
在这个答案中:https ://stackoverflow.com/a/4364020/2903608和以下几点:4.指的是路径:
Tool > Options, Project and Solution > VC++ Directories
但是,在 Microsoft Visual Studio 2012 中,该选项卡包含以下信息:
"VC++ Directories editing in Tools > Options has been deprecated.
VC++ Directories are now available as a user property sheet that is added by default all project. Please click '?' for more information."
不幸的是,无法单击选项卡中的任何内容来获得“更多信息”。所以我转向谷歌以获取更多信息,并进入了以下冗长的页面(见底部的项目符号):http://social。 msdn.microsoft.com/Forums/vstudio/en-US/a494abb8-3561-4ebe-9eb0-6f644a679862/visual-studio-2010-professional-how-to-add-include-directory-for-all-projects?forum= vcgeneral,我相信我可以通过以下问题进行总结:我正在寻找的已弃用路径是否可以在此处访问:
PROJECT > project_name Properties, Configuration Properties > VC++ Directories
如果是这种情况,我尝试修改“可执行目录”的条目,但它似乎没有明显的效果。即使我用一个明显无效的选择来屠宰那个条目,错误消息也没有明显的区别。
同一来源还包含以下建议:
"VC++ Directories are no longer supported in VS2010 through Tools->Options page.
Instead, VS2010 introduces the user settings file (Microsoft.cpp.<Platform>.users.props)
to control global settings including Global search path. These files are located at
$(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 directory. Upon migration to VS2010,
the custom settings of VC++ Directories from VS2005 or VS2008 are migrated to these user
files. These global settings files are imported into all the converted and newly created projects."
但是当我尝试遵循上述路径时,我只能到达 \local\Microsoft\,因此这似乎是一条死胡同。
- 实际上,该页面中链接的博客可能更有用:http: //blogs.msdn.com/b/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide .aspx