Possible nc-config new option
#3114
gsjaardema
started this conversation in
Ideas
Replies: 1 comment
|
I'll get this in for the next release, and having a flag that works absent the (outdated) C++ library makes a lot of sense! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I was recently helping someone with a program that linked to the netCDF library and they were having issues due to incompatible compilers and finding correct paths and libraries. I showed them
nc-configand that helped quite a bit.However, they were using C++ instead of C for their application, so they had to get the output from
nc-config --ccand then look in that path and see if there was a C++ compiler and then paste that path into their compile line.So... Would it make sense for
nc-configto also have a--c++option or--cxxwhich would print the path to the C++ compiler that the CMake build process for netCDF found during the configuration?I don't think the C++ flags would be needed since they aren't compiling netCDF, only linking with it...
I'm not totally sold on the idea yet, but it would have saved a few confusing steps for the user in this case. I do see that there is already a
--cxxoption which doesn't echo anything (unless maybe the netCDF C++ library is also installed?)Comments?
All reactions