After I luckily build the ROMS build.bash, I tried to plot the output with the plotting package, this time I also encounter a problem.
Still my machine is a mac mini with Mavericks 10.9.4, with gcc 4.8.2 obtained from the macports, and I installed the NCL 6.2.0. After I run the makefile, the output end with this:
Code: Select all
Undefined symbols for architecture x86_64:
"_nf_close_", referenced from:
_crash_ in libUTIL.a(crash.o)
"_nf_get_att_real_", referenced from:
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_get_att_text_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_what_flds_ in libUTIL.a(what_flds.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_get_var1_int_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
"_nf_get_var1_real_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc3pos_ in libUTIL.a(get_nc3pos.o)
"_nf_get_var1_text_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
"_nf_get_var_real_", referenced from:
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
"_nf_get_vara_double_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
"_nf_get_vara_int_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_get_vara_real_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_inq_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2pos_ in libUTIL.a(get_nc2pos.o)
_get_nc3pos_ in libUTIL.a(get_nc3pos.o)
"_nf_inq_attlen_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_what_flds_ in libUTIL.a(what_flds.o)
"_nf_inq_attname_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_what_flds_ in libUTIL.a(what_flds.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_inq_dim_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_time_indx_ in libUTIL.a(time_indx.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
"_nf_inq_var_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_get_nc2pos_ in libUTIL.a(get_nc2pos.o)
_get_nc3pos_ in libUTIL.a(get_nc3pos.o)
_time_indx_ in libUTIL.a(time_indx.o)
_what_flds_ in libUTIL.a(what_flds.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
...
"_nf_inq_varid_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
_get_nc2dat_ in libUTIL.a(get_nc2dat.o)
_get_nc3pos_ in libUTIL.a(get_nc3pos.o)
_time_indx_ in libUTIL.a(time_indx.o)
_get_nc1dat_ in libUTIL.a(get_nc1dat.o)
_get_nc3dat_ in libUTIL.a(get_nc3dat.o)
_get_ncobs_ in libUTIL.a(get_ncobs.o)
...
"_nf_open_", referenced from:
_opencdf_ in libUTIL.a(opencdf.o)
"_nf_strerror_", referenced from:
_crash_ in libUTIL.a(crash.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/linfan/src/plot/executables/cnt] Error 1
I looked into the forum and find something similar here:viewtopic.php?f=31&t=2769&hilit=plotting+package
But this did not solve my problem...it seemed like a linking issue again.
I would be appreciate if anyone could help.
Thanks!
Fan Lin