VS2010 express中改变VC Default include/lib/… 目录
2015-02-22 10:04
309 查看
转自: Liz's Blog http://www.cnblogs.com/lizmy/archive/2012/01/10/2318258.html
2010中是以工程为单位,更改VC++ directories。每个工程都修改一便很是繁琐,因此想修改下默认VC目录。
从网上查了下,主流的方法是:
View-> Other windows –> Property Manager
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/18b97c8b82463ba3ff415ecb0dce8a32.png)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/d2ef01f8a967a402034925000dadb959.png)
公共静态库的设置
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/6d23e81625faeb311b7b9bfc1bddf1df.png)
但对于 express 版本,没有Property manager窗口,因此修改这份文件:
Win7下: C:\Users\<user>\AppData\Local\Microsoft\MSBuild\v4.0
32位版本: Microsoft.Cpp.Win32.user.props
64位版本: Microsoft.Cpp.x64.user.props
默认:
2010中是以工程为单位,更改VC++ directories。每个工程都修改一便很是繁琐,因此想修改下默认VC目录。
从网上查了下,主流的方法是:
View-> Other windows –> Property Manager
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/18b97c8b82463ba3ff415ecb0dce8a32.png)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/d2ef01f8a967a402034925000dadb959.png)
公共静态库的设置
![](https://oscdn.geek-share.com/Uploads/Images/Content/201502/6d23e81625faeb311b7b9bfc1bddf1df.png)
但对于 express 版本,没有Property manager窗口,因此修改这份文件:
Win7下: C:\Users\<user>\AppData\Local\Microsoft\MSBuild\v4.0
32位版本: Microsoft.Cpp.Win32.user.props
64位版本: Microsoft.Cpp.x64.user.props
默认:
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> </Project>
修改为:
<?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>D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;$(IncludePath)</IncludePath> <ReferencePath>$(ReferencePath)</ReferencePath> <LibraryPath>D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;$(LibraryPath)</LibraryPath> <SourcePath>$(SourcePath)</SourcePath> <ExcludePath>$(ExcludePath)</ExcludePath> </PropertyGroup> </Project>修改Linker –> Input –> Addition Dependencies
相关文章推荐
- VS2010 express中改变VC Default include/lib/… 目录
- VS2010设置全局Include和Lib目录
- 修改vs2010所有工程的include目录和lib目录
- VS2010 VC Project的default Include设置
- VS2010的VC工程仅配置一次lib和include以后再无需配置的方法
- VS2010 VC Project的default Include设置
- VS2010设置全局Include和Lib目录
- VS2010 VC Project的default Include设置
- VS2010 VC Project的default Include设置
- VS2010中怎样为所有项目统一设置Include目录和Lib目录
- VS2010 VC Project的default Include设置
- VS2010 VC Project的default Include设置
- VS2010 VC Project的default Include设置
- 在VS2010里面包含进全局的include目录和lib目录
- VS2010 VC Project的default Include设置
- “古早以来,PC 上的 C 编译器,就需要两个环境变数: LIB:这个环境变数告诉编译器说,必要的 libraries 在哪里(哪个磁碟目录下) INCLUDE:告诉编译器说,必要的 header
- vc 改变文件目录
- 包含路径(include path) 库路径(lib path)VC++2010 (附加)包含目录 (附加)库目录
- VS2010 如何添加H文件目录和LIB目录
- VC 调试小记之--warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library