VC 2010(10.0)设置头文件、库文件路径

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 目录下

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值