[100%] Linking Fortran executable gotm
Undefined symbols for architecture x86_64:
"___netcdf_MOD_nf90_close", referenced from:
___netcdf_output_MOD_finalize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_create", referenced from:
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_def_dim", referenced from:
_get_dim_id.4982 in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_def_var_manydims", referenced from:
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_enddef", referenced from:
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_get_att_text", referenced from:
___input_netcdf_MOD_check_restart_time in libinput_manager.a(input_netcdf.F90.o)
"___netcdf_MOD_nf90_get_var_1d_eightbytereal", referenced from:
___input_netcdf_MOD_read_restart_data in libinput_manager.a(input_netcdf.F90.o)
"___netcdf_MOD_nf90_get_var_eightbytereal", referenced from:
___input_netcdf_MOD_read_restart_data in libinput_manager.a(input_netcdf.F90.o)
"___netcdf_MOD_nf90_inq_libvers", referenced from:
_print_version_ in libgotm.a(print_version.F90.o)
"___netcdf_MOD_nf90_inq_varid", referenced from:
___input_netcdf_MOD_read_restart_data in libinput_manager.a(input_netcdf.F90.o)
___input_netcdf_MOD_check_restart_time in libinput_manager.a(input_netcdf.F90.o)
"___netcdf_MOD_nf90_open", referenced from:
___input_netcdf_MOD_read_restart_data in libinput_manager.a(input_netcdf.F90.o)
___input_netcdf_MOD_check_restart_time in libinput_manager.a(input_netcdf.F90.o)
"___netcdf_MOD_nf90_put_att_one_eightbytereal", referenced from:
___netcdf_output_MOD_put_att_typed_real in liboutput_manager.a(netcdf_output.F90.o)
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_att_one_fourbyteint", referenced from:
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_att_one_fourbytereal", referenced from:
___netcdf_output_MOD_put_att_typed_real in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_att_text", referenced from:
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_var_1d_eightbytereal", referenced from:
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_var_2d_eightbytereal", referenced from:
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_var_3d_eightbytereal", referenced from:
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_put_var_eightbytereal", referenced from:
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_strerror", referenced from:
___input_netcdf_MOD_handle_err in libinput_manager.a(input_netcdf.F90.o)
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
___netcdf_output_MOD_finalize in liboutput_manager.a(netcdf_output.F90.o)
_get_dim_id.4982 in liboutput_manager.a(netcdf_output.F90.o)
___netcdf_output_MOD_initialize in liboutput_manager.a(netcdf_output.F90.o)
"___netcdf_MOD_nf90_sync", referenced from:
___netcdf_output_MOD_save in liboutput_manager.a(netcdf_output.F90.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [gotm] Error 1
make[1]: *** [CMakeFiles/gotm_exe.dir/all] Error 2
make: *** [all] Error 2
robertladwig$ ./check_netcdf.sh
Checking if CMake can find NetCDF compile and link information ...
-- Found NetCDF: -L/usr/local/Cellar/netcdf/4.7.3_1/lib
CMake Error at extern/flexout/cmake/Modules/FindNetCDF.cmake:86 (add_library):
add_library command is not scriptable
The above MUST include - Found NetCDF - to successfully continue
--
You received this message because you are subscribed to the Google Groups "GOTM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/f834592a-b5e7-48a6-91ea-988f163cdb35%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GOTM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/9bd5d7af-ecc6-40e5-9810-6ae3fd83d001%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/9bd5d7af-ecc6-40e5-9810-6ae3fd83d001%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GOTM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/9bd5d7af-ecc6-40e5-9810-6ae3fd83d001%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/b2f0ed3e-baa9-49a7-9ca2-235e721d0541%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/CAFvy56WUR7tcHzwH3%3DeCBHTn4dVQ65fsQK1%3DvbhWT7WCUOs9QQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/b2f0ed3e-baa9-49a7-9ca2-235e721d0541%40googlegroups.com.
----Karsten Bolding
You received this message because you are subscribed to the Google Groups "GOTM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/CAFvy56WUR7tcHzwH3%3DeCBHTn4dVQ65fsQK1%3DvbhWT7WCUOs9QQ%40mail.gmail.com.
Hi Robert,
try -DCMAKE_EXE_LINKER_FLAGS="-lnetcdff -lnetcdf" (never used this so far), or -DCMAKE_Fortran_FLAGS="-lnetcdff -lnetcdf" when you call the cmake command.
Cheers, Knut
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/e9a2faec-8f42-43ae-b41c-00f2b631d9a1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-users/e9a2faec-8f42-43ae-b41c-00f2b631d9a1%40googlegroups.com.