Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

/usr/include/netcdf #15

Closed nschloe closed 10 years ago

nschloe commented 10 years ago

In the installation of netcdf-cxx4, one finds the funny file /usr/include/netcdf without a file name extension. Is that an include file? If yes, it should be probably be names .h or .hpp.

russrew commented 10 years ago

Yes, that's an include file. It can't be named netcdf.h, as that would overwrite the netCDF C include file with the same name. All the example/*.cpp files use "#include ", and the author of this generic include file named it "netcdf" as a way to indicate it was pure preprocessor code. If we renamed it "netcdf.hh" or "netcdf.hpp", I think for backward compatibility we would have to also have a symbolic link to the extension-less file "netcdf". I guess there's a slight advantage of including the extra file with the symbolic link, because we could deprecate the use of "include ", but it doesn't seem worth the trouble.