by "rTrenado" <ReneT@[EMAIL PROTECTED]
>
May 9, 2006 at 02:07 AM
Wouldnt "Target->Access Paths->Add" to add the path of your include
files work for you?
double_s@[EMAIL PROTECTED]
wrote:
> 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,