I’ve run into a bit of a strange problem with QNX 6.3.0 and gcc 3.4.4.
If I define a macro using -D, say -DFOO=BAR, and then try to check that
in the code using #if (FOO == BAR) … #endif, it won’t work. By the
looks of it it completely ignores this construct; even when I skip -D in
the command line, the code with the #if statement will be included! This
is really weird. I also have Cygwin installed on the same computer and
tried with it’s gcc (which is also 3.4.4) and have the same result.
Has anyone had any similar problems? Just defining the macro without
specified value (i.e. -DFOO and checking with #ifdef FOO) works just fine…
I’m running all this on a WinXP SP2 machine, building for a SH4 system.
Would be very grateful for any help.