egcs-2.91.66

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Wed May 3 20:17:00 GMT 2000


Martin Minkler <minkler@xmailer.informatik.uni-bonn.de> said:

[...]

> to quote the wrong code: "x=(double *)calloc(dim*sizeof(double));"

The calloc(3) prototype is supposed to be in <stdlib.h>, either you didn't
include that or the header is badly broken in your setup. Here (Red Hat
6.2, gcc-2.95.3 snapshot from rawhide) I get for something like the above:

tst.c: In function `f':
tst.c:5: too few arguments to function `calloc'
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616


More information about the Gcc-bugs mailing list