David Bold

Results 187 comments of David Bold

Can you post the content of `examples/conduction/CMakeFiles/conduction.dir/link.txt`? Have you tried removing the build folder, after you fixed the netcdf warning?

On 8/5/24 15:32, Dominic Power wrote: > Yes, |examples/conduction/CMakeFiles/conduction.dir/link.txt| looks like: > image.png (view on web) > Can you please share the text rather then a picture?

what does ``` bash nm -CD /usr/local/netcdf/lib/libnetcdf_c++4.so | grep 'netCDF::NcFile::NcFile(std::__cxx11::basic_string const&, netCDF::NcFile::FileMode)' ``` say? Is `/usr/local/netcdf/lib/libnetcdf_c++4.so` really the netcdf-c++ library you want to use? `/usr/lib64/libnetcdf.so` also looks wrong, as you...

if the above has no output, what does: `nm -CD /usr/local/netcdf/lib/libnetcdf_c++4.so | grep 'netCDF::NcFile::NcFile'` give?

> Is `/usr/local/netcdf/lib/libnetcdf_c++4.so` really the netcdf-c++ library you want to use? `/usr/lib64/libnetcdf.so` also looks wrong, as you mentioned you have loaded a netcdf module. Any thoughts on this?

As far as I can tell, the issue is that netcdf-c++ has been compiled against an old c++-standard, while you are using a newer c++ standard to compile bout++. As...

CMake is sometimes weird about finding the wrong compiler. I found I often need something like: ```bash cmake -DCMAKE_CXX_COMPILER=$(which g++) \ -DCMAKE_C_COMPILER=$(which gcc) \ -DMPI_CXX_COMPILER=$(which mpic++) \ -DMPI_C_COMPILER=$(which mpicc) ```...