[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

  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: