Steve M. Fabac, Jr. a écrit dans le message <3F0DD810.53A211ABatt.net>...
>I am investigating moving a client from 3.2v4.2 to SCO 5.0.6 but am having
>problems with gcc on 5.0.6 when trying to compile on of the client's
application.
>
>First, I'm no programmer. If I can type "cc program.c" and get an a.out
that will
>run I'm happy. There are no notes or make files on the client's 3.2v4.2
system.
>when I type: gcc -I /usr/informix/incl swlsvr.c
>
>I get:
>
>sqlsvr.ec: In function `main':
>sqlsvr.ec:133: `errno' undeclared (first use in this function)
>sqlsvr.ec:133: (Each undeclared identifier is reported only once
>sqlsvr.ec:133: for each function it appears in.)
[snip]
>I have searched google and groups.google for gcc compiler switches to
>support old style c but have come up empty.
>
>Any suggestions?
Most of the 4.2 statically linked coff binaries run on 5.0.x