Out of Scope error with hdf5_fun.cpp #1517
mlangelaar
started this conversation in
General
Replies: 2 comments 2 replies
-
Hello @mlangelaar |
Beta Was this translation helpful? Give feedback.
2 replies
-
Problem solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon,
Error in hdf5_cpp (out of scope), not sure how to fix this one, well versed in C, fair in C++
Scanning dependencies of target gdl
[ 15%] Building CXX object src/CMakeFiles/gdl.dir/hdf5_fun.cpp.o
/root/GDL/gdl/src/hdf5_fun.cpp: In destructor â?lib::hdf5_name_guard::~hdf5_name_guard()â?:
/root/GDL/gdl/src/hdf5_fun.cpp:113:44: error: â?H5free_memoryâ? was not declared in this scope
~hdf5_name_guard() { H5free_memory(name); }
^
make[2]: *** [src/CMakeFiles/gdl.dir/hdf5_fun.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/gdl.dir/all] Error 2
Running on an older SL 7.8 O/S, have tried default compiler :
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
Also tried 'scl enable devtoolset-9 rh-python38 rh-perl530 bash'
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
The cmake is different, need to be able to call gdl from python, so :
cd gdl/build
cmake3 -DPYTHON=OFF -DPYTHON_MODULE=ON ..
Maiko
Beta Was this translation helpful? Give feedback.
All reactions