I use compiler 'edg' for front-end compilation
Let's assume I have got 2 files
a) /build/src/a.c
b) /build/include/a.h
I am able to compile 'ac' by specifying '-I /build/include'
but not using '-I../include'
How to use relative path using 'edg'?
Note: I am compiling all the source files using 'xml' files and not from command-line
Relative path, but relative to what ? I suspect that -I../include
in fact works, and is relative to the current working directory of your compiler process. IOW, do a cd /build/src
and ../include
will work.
I don't know what you mean by "using xml files"; but that doesn't take away the fact that the compiler process has a current working directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.