Mail Archives: pgcc/1999/10/20/20:01:52
Hi,
I don't understand why the pgcc (under stampede) gives the error "non-constant
initializer"
with the code below, while gcc and egcc (under debian) don't give it.
Is there some switch that one can apply?
Are the files stdio.h different?
--------
#include <stdio.h>
FILE *outfile = stdout;
int main (int argc, char *argv[]) {
int x = 10;
fprintf(outfile, "%d", x);
return 0;
}
-------
The offending line is FILE ...
Note that if it is after main all goes well
Many thanks
PLEASE ANSWER TO MY ADDRESS, 'CAUSE I'M NOT IN THE MAILING LIST
Leopoldo Cerbaro
- Raw text -