From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,53bf451f9a1f17e0,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-04 09:29:47 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!usenet.coe.montana.edu!netnews.nwnet.net!henson!bob From: bob@henson.cc.wwu.edu (Bob Hayes) Subject: CPP problems?? Message-ID: <1993Oct4.155022.21031@henson.cc.wwu.edu> Summary: CPP barfs on standard keywords Keywords: extern, syntax errors Organization: Western Washington University Date: Mon, 4 Oct 1993 15:50:22 GMT Machine: DEC 300/300 alpha -- OSF 1.3 OS I am trying to build the suit of tools known as "magic" used for VLSI design. It is straightforward k&R "C" for the most part. When I try the compile, I get errors flagged in the header files, eg: extern char *( blah blah ^^^^^^ syntax error; unexpected another zinger: -in an 'if' clause with an "else", the cpp whines about a syntax error at the else -- changing the "else" to "elseif" makes cpp happy ?!?!! I have tried -traditional, -std0 ( and other) cflags but there seems to be something more going on here. In one instance a declaration causing an error ( an unexpected charactor read error ), I inserted a dummy var ( named "int dddummy"), just before the error to change the flow of the cpp parsing. The syntax error stayed the same, but another up popped 80 lines later related to a var named " char *xyzdummy", giving me a type conflict referencing my dddummy var??? This same compiler does fine on some other ansi C source. What flags am I missing here?? Is there a problem with the installation? Is this operator error?? Thanks in advance.. best reply --