NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

[netcdfgroup] Please question compiling nctools

Please tell me, if you could, what C compiler and version shoul be used,
I have tried gcc

 

gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)

 

 

error 

 

printf?

ncvarrename.c:155: warning: incompatible implicit declaration of
built-in function ?printf?

ncvarrename.c:164: warning: incompatible implicit declaration of
built-in function ?printf?

ncvarrename.c:180: warning: incompatible implicit declaration of
built-in function ?printf?

ncvarrename.c:185: warning: incompatible implicit declaration of
built-in function ?printf?

gcc -g -O -I. -I/usr/local/include -o tbl2cdf tbl2cdf.c -L/usr/local/lib
-lnetcdf -lm