Unidata / netcdf-cxx4

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

build netcdf 4.4.1 for netcdf-cxx4 #50

Closed jcwright77 closed 4 years ago

jcwright77 commented 6 years ago

the flag, configure --enable-cxx-4, no longer exists for netcdf 4. how to build for cxx interface ?

WardF commented 6 years ago

You first install the netcdf-c core library (available from https://github.com/Unidata/netcdf-c) and then install this code, which provides an interface to the core C library. The configure/cmake tools will locate and link against the C library.

jcwright77 commented 6 years ago

thanks. i did get that to work. the confusion is that the flag referred to in the readme --enable-cxx-4 no longer exists in the latest releases.

-john

On Sep 25, 2017, at 7:03 PM, Ward Fisher notifications@github.com<mailto:notifications@github.com> wrote:

You first install the netcdf-c core library (available from https://github.com/Unidata/netcdf-c) and then install this code, which provides an interface to the core C library. The configure/cmake tools will locate and link against the C library.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Unidata/netcdf-cxx4/issues/50#issuecomment-332038374, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH8lzYY7nSh9nXMJWyFhfw1UzLqJpyaGks5smDFKgaJpZM4PYZYJ.

dlg0 commented 6 years ago

Just following up on this, I too was confused by the readme since it suggests using the --enable-cxx-4 flag on the configure for netcdf-cxx4 build. Perhaps updating the readme is in order. Thanks.

WardF commented 6 years ago

Thank you very much; I will correct this for the upcoming release. The issue is that the documentation was never updated when the C/Fortran/C++ interfaces were separated into individual libraries. Thanks for letting me know @dlg0 and @jcwright77 !