Guten Morgen Has anyone compiled gpc-19980830 on HPUX 10.20 with the HP ANSI C compiler? I'm using their ANSI compiler in K-and-R mode (should I be using ANSI mode?). The first three or four source files compile OK but gpc.c has problems. At least one error looks completely bogus and I've worked around it easily, in other words it looks like a compiler bug. But I have another and I'm starting to get concerned.
In general, are you using gcc as your "cc" rather than a vendor's? tschues - Nick G. <---------------------------------------------------------------------------> America's a pretty good country but you should | Nick Geovanis never love it more than it loves you. | IT Computing Svcs - Horace Coleman - "Nam Boogie (Tet Version)" | Northwestern Univ from The Veteran, Spring 1998 V n-geovanis@nwu.edu
Guten Morgen
Guten Abend! (-:
Has anyone compiled gpc-19980830 on HPUX 10.20 with the HP ANSI C compiler? [...]
In general, are you using gcc as your "cc" rather than a vendor's?
Yes.
(Well, I am using Linux where gcc *is* my vendor's cc.;-)
Since GPC shares the compiler backend with GCC you have to build large parts of GCC anyway, so I recommend to complete the GCC compilation and then use GCC to compile GPC. For example, after having compiled GCC in /usr/local/src/gpc, you can compile GPC with a command line like the following:
make CC="/usr/local/src/gpc/xgcc -B /usr/local/src/gpc/" \ LANGUAGES=pascal CFLAGS="-g -O"
Schöne GrüÃe,
Peter