Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用编译器'edg'进行前端编译
假设我有 2 个文件
a) /build/src/a.c b) /build/include/a.h
我可以通过指定'-I /build/include' 但不使用'-I../include'来编译'ac'
'-I /build/include'
如何使用'edg'使用相对路径?
注意:我正在使用“xml”文件而不是从命令行编译所有源文件
相对路径,但相对于什么?我怀疑这-I../include实际上有效,并且与编译器进程的当前工作目录相关。IOW,做一个cd /build/src并且../include会工作。
-I../include
cd /build/src
../include
我不知道“使用 xml 文件”是什么意思;但这并不能消除编译器进程具有当前工作目录的事实。