Errors in stdio.h when compiling with Pro*C
Date: 1998/02/12
Message-ID: <34E32C57.E6B7FE79_at_voicenet.com>#1/1
[Quoted] Hello all,
I get a number of errors when compiling a program containing #include <stdio.h> and #include <stdlib.c>. I'm using Pro*C 2.0.5.0.0 running on an AlphaServer 2100 5/250 with OpenVMS 6.2-1H1. Phew.
The errors include stuff like:
typedef const char * __const_char_ptr32;
............1
(1) PCC-S-02201, Encountered the symbol "const" when expecting one of
the follow
ing:
and
Syntax error at line 525, column 14, file stdio.h:
__FILE_ptr32 tmpfile(void);
.............1
(1) PCC-S-02201, Encountered the symbol "tmpfile" when expecting one of
the foll
owing:
Clearly I'm missing something: a file to include? a #define?
Thanks,
Mike
Complete listing of error messages:
Pro*C: Release 2.0.5.0.0 - Production on Thu Feb 12 11:45:30 1998
Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
System default option values taken from: ora_proc20:pmscfg.cfg
Syntax error at line 446, column 13, file stdio.h:
typedef const char * __const_char_ptr32;
............1
(1) PCC-S-02201, Encountered the symbol "const" when expecting one of
the follow
ing:
char, double, enum, float, int, long, short, signed, struct, union, unsigned, varchar, void, a typedef name, etc.
Syntax error at line 525, column 14, file stdio.h:
__FILE_ptr32 tmpfile(void);
.............1
(1) PCC-S-02201, Encountered the symbol "tmpfile" when expecting one of
the foll
owing:
; , = ( [
The symbol ";" was substituted for "tmpfile" to continue.
Parser error at line 531, column 7, file stdio.h:
void (clearerr) (FILE *__stream);
......1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Parser error at line 531, column 17, file stdio.h: void (clearerr) (FILE *__stream);
................1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Syntax error at line 531, column 7, file stdio.h:
void (clearerr) (FILE *__stream);
......1
(1) PCC-S-02201, Encountered the symbol "->" when expecting one of the
following
:
( ) [
Parser error at line 532, column 7, file stdio.h:
int (feof) (FILE *__stream);
......1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Parser error at line 532, column 17, file stdio.h: int (feof) (FILE *__stream);
................1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Parser error at line 533, column 7, file stdio.h:
int (ferror) (FILE *__stream);
......1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Parser error at line 533, column 17, file stdio.h: int (ferror) (FILE *__stream);
................1
(1) PCC-F-02209, Macro invocation has incorrect number of arguments
Syntax error at line 532, column 33, file stdio.h: int (feof) (FILE *__stream);
................................1
(1) PCC-S-02201, Encountered the symbol ";" when expecting one of the
following:
, = ( ) [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&= ||= ^= | & == != <= >= << >> ++ -- ->
Syntax error at line 533, column 7, file stdio.h:
int (ferror) (FILE *__stream);
......1
(1) PCC-S-02201, Encountered the symbol "int" when expecting one of the
followin
g:
( ) [
(1) PCC-F-02102, Fatal error while doing C preprocessing
Received on Thu Feb 12 1998 - 00:00:00 CET