1. 编译时,显示Include文件的包含关系
/showIncludes
property->c/c++->advanced->Show includes->Yes
2. 查看中间文件
1. 选中需要展开的代码文件或工程文件,右键 - 属性 - C/C++ - Preprocessor
2. Generate Preprocessed File 设置 Without Line Numbers (/EP /P) 或 With Line Numbers (/P)
3. 关闭属性对话框,右键选中需要展开的文件,右键菜单中点击:Compile
3. VC6 include路径过长时,无法保存问题
Project Settings -》 C/C++ -》Project Options
加入@xxx.txt
在@xxx.txt中加入编译选项:
/I "路径1"
/I "路径2"
/D 宏1
/D 宏2