Mail Archives: djgpp/1996/08/08/02:06:08
On Wed, 31 Jul 1996, Tim Olmstead wrote:
> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
> >The compiler supports ANSI C, but the extensions are vendor-specific.
> >What the original poster says is that you should only use the standard
> >features, and then you don't have to worry which compiler you use to
> >compile the program.
>
> OH BOY! If only that were true. I'm porting a VERRRRY large
> application from Unix to MSDOS (about 500,000 lines of C code). I have
> five (5) C compilers on my system at the moment, and NO TWO of them
That probably means that the program you are trying to port uses some
non-ANSI features (like header files and library functions which ANSI
doesn't mention). Strict ANSI C code will compile on any ANSI-compliant
compiler without any problems (and in my experience, it does).
Unfortunately, too few people restrict themselves to ANSI C when they
write programs...
- Raw text -