Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/include/netcdf #15

Closed
nschloe opened this issue Apr 1, 2014 · 1 comment
Closed

/usr/include/netcdf #15

nschloe opened this issue Apr 1, 2014 · 1 comment

Comments

@nschloe
Copy link
Contributor

nschloe commented Apr 1, 2014

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
Copy link
Contributor

russrew commented Apr 1, 2014

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.

@russrew russrew closed this as completed Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants