Re: ISO C incompatibilities

From: QNils_O=2E_Sel=E5sdal=22?= (NOS_at_Utel.no)
Date: 05/28/04


Date: Fri, 28 May 2004 09:42:57 +0200

djk9636 wrote:
> 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:
Drop that, and try the -ansi switch



Relevant Pages

  • Re: How to talk to hardware devices in C
    ... function prototypes, and the compiler handles the rest. ... The .h files are not libraries in Linux any more than they are in Windows, AIX, or any other system. ...
    (comp.lang.c)
  • Re: ISO C incompatibilities
    ... > I have some old C code that quit compiling on Linux because the compiler ... > doesn't like the function prototypes not matching the function ... > I can't seem to find how to do it on Linux. ... The error message is: ...
    (comp.lang.c)
  • Re: ISO C incompatibilities
    ... > I have some old C code that quit compiling on Linux because the compiler ... > doesn't like the function prototypes not matching the function ... I know Sun has a compiler switch that overrides this, ... The error message is: ...
    (comp.lang.c)
  • Re: ISO C incompatibilities
    ... > I have some old C code that quit compiling on Linux because the compiler ... > doesn't like the function prototypes not matching the function ... I know Sun has a compiler switch that overrides this, ... The error message is: ...
    (linux.redhat)
  • ISO C incompatibilities
    ... I have some old C code that quit compiling on Linux because the compiler ... doesn't like the function prototypes not matching the function ... I can't seem to find how to do it on Linux. ... The error message is: ...
    (comp.lang.c)