Hi Alejandro,
Thanks a lot for your kind reply! However, it still appeared the same
error after I changed the Makefile as you suggested. BTW, it actually
has linking problem with libcurl, which I forgot to mention last time.
The error is similar as:
---------------------------
/opt/clout/clout/software/netcdf/netcdf-4/netcdf-4-4.1.2-gnu-4.1.2/oc/
ocinternal.c:140: undefined reference to `curl_version_info'
/opt/clout/netcdf-4-4.1.2-gnu-4.1.2/lib/libnetcdf.a(libnetcdf4_la-
nc4type.o): In function `NC4_inq_type_equal':
/opt/clout/clout/software/netcdf/netcdf-4/netcdf-4-4.1.2-gnu-4.1.2/
libsrc4/nc4type.c:77: undefined reference to `H5Tequal'
/opt/clout/netcdf-4-4.1.2-gnu-4.1.2/lib/libnetcdf.a(liboc_la-
curlfunctions.o): In function `ocset_ssl':
/opt/clout/clout/software/netcdf/netcdf-4/netcdf-4-4.1.2-gnu-4.1.2/oc/
curlfunctions.c:100: undefined reference to `curl_easy_setopt'
/opt/clout/clout/software/netcdf/netcdf-4/netcdf-4-4.1.2-gnu-4.1.2/oc/
curlfunctions.c:103: undefined reference to `curl_easy_setopt'
----------------------------
-------------------My Makefile is as follows:------------------------
F90 = gfortran
NCDF_INC = /opt/clout/netcdf-4-4.1.2-gnu-4.1.2/include
NCDF_LIB = /opt/clout/netcdf-4-4.1.2-gnu-4.1.2/lib
CMOR_INC = /Usershome/project/COSP/CMOR2/include
CMOR_LIB = /Usershome/project/COSP/CMOR2/lib
UDUNITS_LIB = /opt/clout/udunits-2-2.1.22-gnu-4.1.2/lib
UUID_INC = /Usershome/project/COSP/uuid/include
UUID_LIB = /Usershome/project/COSP/uuid/lib
LD_LIBRARY_PATH=/usr/local/lib:/opt/clout/hdf-5-1.8.6-gnu-4.1.2/lib:/
usr/local/netcdf-4-4.1.2-gnu-4.1.2/lib
RS_PATH = /Usershome/project/COSP/COSP_code/quickbeam
CS_PATH = /Usershome/project/COSP/COSP_code/actsim
LLNL_PATH = /Usershome/project/COSP/COSP_code/llnl
ISCCP_PATH =/Usershome/project/COSP/COSP_code/icarus-scops-4.1-bsd
MISR_PATH = /Usershome/project/COSP/COSP_code/MISR_simulator
MODIS_PATH = /Usershome/project/COSP/COSP_code/MODIS_simulator
RTTOV_PATH = /Usershome/project/COSP/rttov93/
RTTOV_LIB_PATH = $(RTTOV_PATH)/lib
RTTOV_INC_PATH = $(RTTOV_PATH)/include
RTTOV_MOD_PATH = $(RTTOV_PATH)/mod
########################################################################
# End of modifications
########################################################################
PROG = cosp_test
OBJS = cosp_radar.o cosp_types.o cosp_constants.o cosp_simulator.o \
cosp_utils.o scops.o prec_scops.o cosp.o cosp_stats.o \
pf_to_mr.o \
cosp_lidar.o radar_simulator_types.o zeff.o \
array_lib.o atmos_lib.o dsd.o format_input.o \
gases.o load_hydrometeor_classes.o \
math_lib.o mrgrnk.o optics_lib.o radar_simulator.o \
lidar_simulator.o cosp_io.o llnl_stats.o lmd_ipsl_stats.o \
cosp_isccp_simulator.o icarus.o \
cosp_misr_simulator.o MISR_simulator.o \
cosp_modis_simulator.o modis_simulator.o \
cosp_rttov_simulator.o
all: $(PROG)
$(PROG): $(OBJS)
$(F90) $(F90FLAGS) $(PROG).F90 $(OBJS) \
-I$(INC) -L${LIB} -lz \
-I$(CMOR_INC) -L${CMOR_LIB} -lcmor \
-I$(NCDF_INC) -L${NCDF_LIB} -lnetcdff -lnetcdf \
-I$(UUID_INC) -L${UUID_LIB} -luuid \
-L${UDUNITS_LIB} -ludunits2 \
-o $(PROG)
------------------------------------------------
Hoping for kind replies:) Thank you all!
Wei-Wei
On Jan 10, 5:17 am, "Bodas-Salcedo, Alejandro"