Mail Archives: djgpp/1997/01/14/02:09:21
On Mon, 13 Jan 1997, David Stockton wrote:
> I have been working on a library of C++ routines that I will eventually want
> to compile on several platforms.  They compiled cleanly with "-Wall" but
> when I decided they would port more easily if I made them ANSI compliant.
I don't know what -ansi will do to C++ programs, since there's no ANSI 
C++ standard yet.  Are you sure that switch is documented in the context 
of C++ programs?
> So I added the "-ansi" compile flag and it complained that malloc, calloc,
> etc. had no prototypes.  I am infering from this that they are not ANSI
> standard functions.
That is a wrong inference.  These functions are prototyped on stdlib.h, 
and are defined by ANSI C standard.  Did you include <stdlib.h> in your 
sources?
- Raw text -