VC 2010(10.0)设置头文件、库文件路径
2013-09-27 19:15
441 查看
VC 2010(10.0)中,如何设置头文件、库文件路径?
在VC2010的Tools——Options里面设置,属性页显示“*** has been deprecated”! 于是,按照提示,在工程属性窗口(Project——Properties),“Configuration Properties”——“VC++ Directories”里面设置。然后,我退出VC,重新运行并新建工程,新工程里面的包含路径却没有改变!
如此,在这里设置,和在工程属性窗口的“Configuration Properties”——“C++”——“General”里面设置,岂不是一样的效果?
或许我的方法不对?
2011.03.02注:
参考:http://topic.csdn.net/u/20090717/11/035cb8b3-21d9-4749-b104-70911f2ec056.html
作者:guanlq
可以直接修改 <drive>:\Documents and Settings\ <user>\Local Settings\Application Data\Microsoft\MSBuild\v4.0. 目录下的文件。Microsoft.Cpp.Win32.user (32位平台) 或者是Microsoft.Cpp.X64.user(64位平)
比如 原来内容为:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
我现在需要增加一个目录:
C:\Boost\include\boost-1_43\;到默认头Include 路径,则可以修改文件如下:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>C:\Boost\include\boost-1_43\;$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
win7在C:\Users\hugo\AppData\Local\Microsoft\MSBuild\v4.0 目录下
在VC2010的Tools——Options里面设置,属性页显示“*** has been deprecated”! 于是,按照提示,在工程属性窗口(Project——Properties),“Configuration Properties”——“VC++ Directories”里面设置。然后,我退出VC,重新运行并新建工程,新工程里面的包含路径却没有改变!
如此,在这里设置,和在工程属性窗口的“Configuration Properties”——“C++”——“General”里面设置,岂不是一样的效果?
或许我的方法不对?
2011.03.02注:
参考:http://topic.csdn.net/u/20090717/11/035cb8b3-21d9-4749-b104-70911f2ec056.html
作者:guanlq
可以直接修改 <drive>:\Documents and Settings\ <user>\Local Settings\Application Data\Microsoft\MSBuild\v4.0. 目录下的文件。Microsoft.Cpp.Win32.user (32位平台) 或者是Microsoft.Cpp.X64.user(64位平)
比如 原来内容为:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
我现在需要增加一个目录:
C:\Boost\include\boost-1_43\;到默认头Include 路径,则可以修改文件如下:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ExecutablePath>$(ExecutablePath)</ExecutablePath>
<IncludePath>C:\Boost\include\boost-1_43\;$(IncludePath)</IncludePath>
<ReferencePath>$(ReferencePath)</ReferencePath>
<LibraryPath>$(LibraryPath)</LibraryPath>
<SourcePath>$(SourcePath)</SourcePath>
<ExcludePath>$(ExcludePath)</ExcludePath>
</PropertyGroup>
</Project>
win7在C:\Users\hugo\AppData\Local\Microsoft\MSBuild\v4.0 目录下
相关文章推荐
- VC中设置头文件的搜索路径~~
- VC/MFC 设置程序与文件关联与双击文件获取文件路径
- VC++包含文件路径设置
- VC2010中怎样添加头文件路径(外来的头文件)还有lib库
- VC2010输出文件路径更改
- VC++全局包含文件路径设置( Include 设置)
- VC/MFC 设置程序与文件关联与双击文件获取文件路径
- VC下 头文件搜索路径文件.set的设置
- VC/MFC 设置程序与文件关联与双击文件获取文件路径
- vs2008设置lib和h文件路径
- Spring 中 AbstractExcelView 支持根据模板生成Excel文件. 通过设置 view 的 URL 属性指定模板的路径
- VC新建目录CreateDirectory、得到exe存放路径GetModuleFileName、获取当前目录GetCurrentDirectory、CFileDialog设置打开默认路径
- VC中按相对路径打开文件
- VC2010打开资源视图时提示“指南必须指定类型”,.rc资源文件损坏(转)
- Visual Studio 2010中VC++ Directories的设置
- 文件路径设置的问题
- vc2010设置为静态编译
- VC URLDownloadToFile 不能下载中文路径文件的解决办法
- linux codelite 设置库文件和头文件路径
- vc设置目录连接路径