[coco-devel] Re: Ideas on CC
Brought to you by:
svref
From: David M. <sv...@ya...> - 2002-03-09 01:32:23
|
Joshua Priluck wrote: > Well this was what I ended with after the last idea: > > make > cc -Wall -O3 -I/usr/include \ > -o tiff-compile tiff-compile.c -L/usr/lib -ltiff > tiff-compile.c: In function `coco_strup': > tiff-compile.c:49: warning: implicit declaration of function `malloc' > tiff-compile.c: In function `coco_write_raster_header': > tiff-compile.c:108: warning: implicit declaration of function `free' > /usr/bin/ld: table of contents for archive: /usr/local/lib/libtiff.a is > out of date; rerun ranlib(1) (can't load from it) > make: *** [tiff-compile] Error 1 Sorry for the delay, I've been outta town. We're going to need malloc. I'm not sure why #include <stdlib.h> isn't bringing it in. I suspect its that -ansi is being passed to gcc, and that mucks with it. But... what does "man malloc" give you on your system? On mine it tells me to #include <stdlib.h>. |