This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C166 preprocessor and paths

Hi all,

When I specify include directories like so:
INCDIR(.\system;.\inc)
and run the preprocessor (PREPRINTONLY) I get output that contains (for example):

#line 1 "\PROJECTS\MAIN\FOO\BAR~1\INC\TEST2SUB.H" /0
The other output correctly displays:
#line 1 ".\SYSTEM\SYSTEM.H" /0

Why do I suddenly get absolute paths when I have clearly specified relative paths? Note that this (absolute paths) only seems to happen when an include file (header file) includes an other file; and possibly only using the #include "..." statement; #include <...> seems to produce relative paths.

Can this be explained or is it a bug? I was hoping to be able to use relative paths _everywhere_ in my build environment.

This seems to happen in version 3.12 and 5.04.

Regards,
Joost Leeuwesteijn