Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
It would make it easier to have a generic build line for an executable that would not change depending on whether netcdf-4 was enabled or not enabled. For example "cc -o my_exe `nc-config --cflags` my_exe.c `nc-config --libs`" should work for all cases. As it is now, additional logic is needed in each makefile/configure/build system that uses the netcdf library. It would be very nice if that complexity were embedded in nc-config...
I'm sure there is good reasoning behind the current behavior, but if not, I would like to request either a modification to the --libs output, or perhaps another option that listed all libs needed for linking...
Thanks, --Greg
netcdfgroup
archives: