工具/软件:TI C/C++编译器
大家好
IM 正在使用编译器选项--cmd_file 在文件中指定编译器选项。
在此文件中、我想指定几个--include_path 选项。
这些 include 路径应与工程路径相对。 因此、我想使用路径变量。
编译器标志:
--cmd_file="C:\Software\Project\Lib\trunk \Includes.txt"
include.txt:
--include_path="${project_root}/Lib/trunk/Dir1
--include_path="${project_root}/Lib/trunk/Dir2
--include_path="${project_root}/Lib/trunk/Dir3
--include_path="${project_root}/Lib/trunk/Types
--include_path="${project_root}/Lib/trunk/Filter
--include_path="${project_root}/Lib/trunk/Version
如果文件包含完整路径、则不使用变量 PROJECT_ROOT 编译 器即可正常运行。
对于我们来说、编译器会产生错误
"..\Lib\Trunk\Version\Version.h"、第29行:致命错误#1965:无法打开源文件"types.h"
有人知道问题是什么? 有没有更好的想法可以做到这一点?
感谢你能抽出时间。
此致