D
djk9636
Greetings,
I have some old C code that quit compiling on Linux because the compiler
doesn't like the function prototypes not matching the function
definitions. I know Sun has a compiler switch that overrides this, but
I can't seem to find how to do it on Linux.
I'm using "gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
I use the -U__STDC__ directive when I do the compile, but the compile
errors out. The error message is:
"You need a ISO C conforming compiler to use the glibc headers"
If I take the switch out, some of it compiles and even links...
You might call me lazy, but I would rather not make coding changes.
This product runs on many OS's and I'd have to compile/test/package on
all of them.
Thank you for reading my post,
Dean
I have some old C code that quit compiling on Linux because the compiler
doesn't like the function prototypes not matching the function
definitions. I know Sun has a compiler switch that overrides this, but
I can't seem to find how to do it on Linux.
I'm using "gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
I use the -U__STDC__ directive when I do the compile, but the compile
errors out. The error message is:
"You need a ISO C conforming compiler to use the glibc headers"
If I take the switch out, some of it compiles and even links...
You might call me lazy, but I would rather not make coding changes.
This product runs on many OS's and I'd have to compile/test/package on
all of them.
Thank you for reading my post,
Dean