From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a5b796e70cd46e38,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 2003-04-16 01:54:41 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: pat.saunders@sis.securicor.co.uk (pat saunders) Newsgroups: comp.unix.osf.osf1 Subject: PRO-C and types.h Date: 16 Apr 2003 01:54:40 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 217.171.104.36 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1050483281 21901 127.0.0.1 (16 Apr 2003 08:54:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Apr 2003 08:54:41 GMT Xref: archiver1.google.com comp.unix.osf.osf1:166 Hi, I am using Oracle 7.3.1 and Tru64 Unix V5.1A. I am compiling a C application. When I pre-compile *.pc files that reference include files that #include I get syntax errors E.G test.h typedef struct { pid_t pid; } produces a syntax error on line pid_t pid (unexpected type). pid_t is defined in header file. What I cannot understand if in test.c #include #define _POSIX_SOURCE if I comment out the #define _POSIX_SOURCE line. All syntax errors in header file disappear. The Pro - c compiler seems to be having problems with this system file. As if I redefine pid_t typedef int pit_t in test.h it then works ok Pat