Linking NETCDF 4.1.3

Hi,
I have been using NETCDF 3.6.2 without any problems so far.
Now I wanted to use 4.1.3. I am able to compile all the files without any problem using 4.1.3. But when I link to get the .exe file, I get the following errors.

I am not sure as why this is happening? Any suggestion is really appreciated.

Thanks
Venkat

/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1409: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1469: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1564: more undefined references to netcdf_nf90_inq_varid_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlsubs_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1571: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1571: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1576: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1579: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:932: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:932: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1104: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1106: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1114: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1413: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1415: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1476: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1478: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1514: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1526: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1526: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1429: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1511: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1523: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1523: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1124: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1455: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1490: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1492: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1538: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1552: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1584: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1584: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1452: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1535: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1549: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1549: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1128: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1588: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1112: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1427: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1484: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1484: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1481: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1481: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1138: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1146: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1498: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1498: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1495: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1495: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1495: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function getnetcdfgridmasking_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1832: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1835: undefined reference to netcdf_nf90_get_var_fourbyteint_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1839: undefined reference to netcdf_nf90_get_var_fourbyteint_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:1848: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4989: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4995: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4995: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4995: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4995: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3517: undefined reference to netcdf_nf90_inquire_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3522: undefined reference to netcdf_nf90_inquire_dimension_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3531: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3853: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:4572: more undefined references to netcdf_nf90_get_var_fourbytereal_’ follow
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3887: undefined reference to netcdf_nf90_get_var_fourbyteint_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3890: undefined reference to netcdf_nf90_get_var_fourbyteint_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3893: undefined reference to netcdf_nf90_get_var_fourbyteint_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3896: undefined reference to netcdf_nf90_get_var_fourbyteint_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3912: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3913: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3914: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3915: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3917: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3918: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3386: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3369: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3410: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3430: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2166: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2169: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3400: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2117: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2231: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2241: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2241: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2241: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2241: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2245: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2245: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2308: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3420: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2561: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2561: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2561: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2561: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2565: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2565: more undefined references to netcdf_nf90_get_var_fourbytereal_’ follow
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2637: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2851: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2858: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2858: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2858: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2858: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2969: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2969: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3182: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3189: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3189: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3189: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3189: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3195: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3195: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3327: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2319: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2319: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2319: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2319: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2331: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2331: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3175: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3010: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3010: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3010: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3010: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2418: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2418: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3337: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2514: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2641: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2648: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2648: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2648: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2648: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2661: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2661: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2843: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3042: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3042: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3042: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3042: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3047: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3047: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:2789: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3150: more undefined references to netcdf_nf90_get_var_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v3.o): In function nrlnetcdfread_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3597: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3608: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3633: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3636: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3644: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3847: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5172: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5172: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5172: undefined reference to netcdf_nf90_get_var_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5172: undefined reference to netcdf_nf90_get_var_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5322: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:5328: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3648: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3651: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3659: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3664: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3664: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3800: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3800: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3674: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3682: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3686: undefined reference to netcdf_nf90_inq_varid_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3689: undefined reference to netcdf_nf90_inq_varid_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3697: undefined reference to netcdf_nf90_get_var_1d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3697: undefined reference to netcdf_nf90_strerror_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v3.f90:3697: undefined reference to netcdf_nf90_strerror_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o): In function ncpomsubs_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:407: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:159: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:172: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:174: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:176: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:178: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:180: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:182: more undefined references to netcdf_nf90_get_var_3d_fourbytereal_' follow /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o): In function ncpomsubs_’:
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:362: undefined reference to netcdf_nf90_close_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:422: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:436: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:438: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:440: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:442: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:452: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:454: more undefined references to netcdf_nf90_get_var_3d_fourbytereal_’ follow
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o): In function ncpomsubs_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:547: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:220: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:222: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:224: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:226: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:228: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:230: more undefined references to netcdf_nf90_get_var_4d_fourbytereal_’ follow
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o): In function ncpomsubs_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:467: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:469: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:471: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:473: undefined reference to netcdf_nf90_get_var_3d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:243: undefined reference to netcdf_nf90_open_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:246: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:260: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:278: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:289: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:302: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o):/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:316: more undefined references to netcdf_nf90_get_var_4d_fourbytereal_’ follow
/home/mark/GEMSS/Libs/COSIM/libCOS3DLib2rls.a(NRLSubs_v4.o): In function ncpomsubs_': /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:357: undefined reference to netcdf_nf90_close_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:482: undefined reference to netcdf_nf90_open_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:485: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:501: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_' /home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:515: undefined reference to netcdf_nf90_get_var_4d_fourbytereal_’
/home/mark/GEMSS/Srcs/COSIM/NETCDF/NRLSubs_v4.f90:529: undefined reference to `netcdf_nf90_get_var_4d_fourbytereal_’

Hi Venkat,

These symbols are in the NetCDF Fortran library, libnetcdff.a. Most likely, you just didn’t put this library (-lnetcdff) on the link line. Other possibilities are that the library doesn’t exist or you accidentally built the library with the wrong define flags so the symbols got decorated wrong.

  • Mat

Hi Mat,
You suggestion to include libnetcdff.a worked.
I have been linking with the regular one libnetcdf.a and this created the problem.
Thanks again for your prompt response.
Regards,
Venkat