[netcdfgroup] nc-config --libs output -- should it include hdf5 libs if netcdf-4 enabled

Should the nc-config --libs output show the hdf5 libraries that need to be included on the link line in addition to the -lnetdf? This also applies to the curl and opendap and ... options.

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



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: