Trouble with gcc/cpp?

Hello,

I am an undergraduate student at the University of Saskatchewan in Canada. I am developing a tool to block-diagram C code of projects so that people can have a higher-level overview of project functions and also a mouse-click access to variables, typedefs and other symbol information. I am developing the GUI using PhAB. For producing and walking the C tree I am using a component which is in public domain and which has worked for me on a Linux, FreeBSD and NetBSD system. I have used gcc 2.95 on all of these and everything worked/compiled fine.

However, on my machine
->uname -a
QNX dezdemona 6.00 2000/10/17-14:59:25edt x86pc x86

I get the following errors:
—cut here—
–>./ctree ctree.c|more
/usr/bin/cpp -DCTREE ctree.c ctree_pp
In file included from /usr/include/stdio.h:14,
from ctree.c:25:
/usr/include/sys/platform.h:29: #error not configured for compiler
In file included from /usr/include/sys/platform.h:158,
from /usr/include/stdio.h:14,
from ctree.c:25:
/usr/include/_pack64.h:11: #error Compiler not supported
In file included from /usr/include/sys/platform.h:185,
from /usr/include/stdio.h:14,
from ctree.c:25:
/usr/include/_packpop.h:11: #error Compiler not supported
In file included from /usr/include/stdio.h:17,
from ctree.c:25:
/usr/include/_pack64.h:11: #error Compiler not supported
In file included from /usr/include/stdio.h:287,
from ctree.c:25:
/usr/include/_packpop.h:11: #error Compiler not supported
In file included from /usr/include/malloc.h:11,
from /usr/include/stdlib.h:25,
from ctree.c:27:
/usr/include/_pack64.h:11: #error Compiler not supported
In file included from /usr/include/malloc.h:70,
from /usr/include/stdlib.h:25,
from ctree.c:27:
/usr/include/_packpop.h:11: #error Compiler not supported
In file included from /usr/include/stdlib.h:28,
from ctree.c:27:
/usr/include/_pack64.h:11: #error Compiler not supported
In file included from /usr/include/stdlib.h:66,
from ctree.c:27:
/usr/include/_packpop.h:11: #error Compiler not supported
HERE3!!!
—cut here—

I am not an expert but it seems to me that everything chokes on cpp. The walker can walk any C code as long as there is no #include such as <stdio.h> which includes the problematic _pack64.h and _packpop.h

Can anyone give me an idea on how to fix this?

Best regards,
Ognen Duzlevski
http://www.cs.usask.ca/undergrads/ogd116