Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!kunivv1!atcmpe!jc From: jc@atcmp.nl (Jan Christiaan van Winkel) Newsgroups: comp.lang.c Subject: Re: Syntax errors in include files???? Message-ID: <594@atcmpe.atcmp.nl> Date: 3 May 90 07:15:43 GMT References: <1990May2.152425.24723@druid.uucp> Organization: AT Computing, Nijmegen, The Netherlands Lines: 23 In article <222@dynasys.UUCP> jessea@dynasys.UUCP () writes: >I'm getting all kinds of syntax errors from include files when I try >to compile stuff - like times.h, types.h. Can anyone tell me why >I'm getting syntax errors from my include files? I haven't done any Suggestion: try running the C preprocessor alone. This may give you more info on where exactly the problem is. Also, look for missing/extraneous semicolons, comma's etc. just before including a file. Example: suppose your last line before #include is: typedef mytyp int /* no semicolon here */ Then the first non comment line in #include (something like typedef uchar unsigned char;), will produce a syntax error. This is easily seen in a CC -E: typedef mytyp int typedef uchar unsigned char; Hope this helps you.. Good hunting! JC -- Jan Christiaan van Winkel Tel: +31 80 566880 jc@atcmp.nl AT Computing P.O. Box 1428 6501 BK Nijmegen The Netherlands