Hi Motilal,
> I am using ncarglib in my WRFV2.2 model. When I compile WPS
> module, I am getting the error
>
> make -i -r plotgrids.exe \
> WRF_DIR="/n/mmittal/WRFCHEMNEW/WPS/../WRF2.2" \
> FC="ifort " \
> CC="icc " \
> CPP="/lib/cpp -C -P -traditional" \
> FFLAGS="-FR -convert big_endian" \
> CFLAGS="-w" \
> LDFLAGS="" \
> CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINA
> RY -DIO_GRIB1 -DBIT32 -D_UTIL" )
> make[1]: Entering directory `/n/mmittal/WRFCHEMNEW/WPS/util/src'
> ifort -o plotgrids.exe module_map_utils.o module_debug.o cio.o
> constant s_module.o misc_definitions_module.o \
> plotgrids.o -L/n/mmittal/ncarg/lib -lncarg -lcgm -lncarg_gks -ln
> carg_c
> /n/mmittal/ncarg/lib/libncarg.a(mdlndr.o)(.text+0xd2): In function
> `mdln dr_':
> : undefined reference to `s_cat'
> /n/mmittal/ncarg/lib/libncarg.a(mdlndr.o)(.text+0x182): In function
> `mdl ndr_':
> : undefined reference to `s_cmp'
>
> Basically the error is that in the library libncarg.a has reference to
> s_cat, s_copy, and s_cmp but these are not defined.
>
> I executed the command
> nm /n/mmittal/ncarg-4.4.1/ncarg2d/src/libncarg/ezmapb/mdlndr.o
>
> and it shows
> U s_cat
> U s_cmp
> U s_copy
> U seter_
To resolve the symbols noted above, you will need to link in compiler
libraries that ifort uses. In general, for ifort,
the libraries '-lm -lifcore' will resolve what's needed to complete
your compilation. Try including them in your
Makefile along with the NCAR Graphics libraries. Please contact me
if you need further assistance.
-Rick.
----
Rick Grubin NCAR/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Thu Jan 25 2007 - 16:04:31 MST
This archive was generated by hypermail 2.2.0 : Mon Feb 05 2007 - 16:33:14 MST