[ncl-install] Help on definition of NGCALLF in c.h file
Liang, Jinyou@ARB
jliang at arb.ca.gov
Thu Jan 27 10:49:38 MST 2011
Dear NCL expert,
Could you please help me out on the following installation problem with NCL?
While installing ncl_ncarg-5.2.1 on a Linux computer running Redhat Enterprise Linux OS version 5.4 using pgfortran (v10.5) and gcc (4.1.2 20080704 [Red Hat 4.1.2-48]), I encountered an error in subdirectory "common/src/libncarg_c". The use of c.h (a copy of c.h.sed) yielded duplicate definition of SED_NGCALLF due to dozens of functions named
NGCALLF(lowercase, uppercase) (char*, int*)
In files logic32.c and trnspprt.c, etc.
The complete compiler options are as follow:
gcc -O2 -m64 -fPIC -O -I../../.././include -I/usr/X11R6/include -I/usr/local/include/freetype2 -DLinux -DIBM -DNGVERSION='"5.2.1"' -DNCLVERSION='"5.2.1"' -DNCARGURL='"ngurl"' -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -DNDEBUG -c -o rwchinfl.o rwchinfl.c
Did I miss anything in compiler options (I compiled the same package successfully using earlier version of gcc/RHEL and gfortran), or do I have to insert unique definitions in the c.h file for each complaint from the compiler?
Your response will be greatly appreciated.
Regards,
Paul
Jinyou (Paul) Liang, Ph.D.
Staff Air Pollution Specialist
California Air Resources Board
Sacramento, CA 95812
Phone: (916) 327-8543
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20110127/67e2c046/attachment.html
More information about the ncl-install
mailing list