From: pat.saunders@sis.securicor.co.uk (pat saunders)
Subject: PRO-C and types.h
Date: 16 Apr 2003 01:54:40 -0700 [thread overview]
Message-ID: <bc0e3bd8.0304160054.39d645c1@posting.google.com> (raw)
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 <sys/types.h> 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 <types.h> header file.
What I cannot understand if in test.c
#include <test.h>
#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
reply other threads:[~2003-04-16 8:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox