Hi ng,
I need to specify the location of my include files in source files.
Instead of hard-coding each path, I wanted to add a #define in front
the file name which is expanded by the preprocessor before compilation.
I thought of
#define INCPATH "../foo/"
[.source file]
#include INCPATH"bar.h"
However this is exactly expanded as it occurs to: "../foo/""bar.h"
CW does not concatenate both strings automatically. Is there a way to
overcome that? There are some compilers/preprocessors that can handle
these string concatenation, hopefully CW does too.I also tried
#define INCPATH(file) "../foo/"file
with the same result...
Hope you can help,