This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-2.91.66


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]