Probable error with src/functions/BoysFunction.cpp
Closed this issue · 1 comments
Tenshi65535 commented
Greetings to all.
I tried to build the latest release tarball but met the following error.
[ 2%] Building CXX object src/CMakeFiles/mrcpp.dir/functions/BoysFunction.cpp.o
In file included from /home/canary/Desktop/mrcpp-1.4.1/src/trees/FunctionTree.h:30,
from /home/canary/Desktop/mrcpp-1.4.1/src/trees/FunctionTreeVector.h:31,
from /home/canary/Desktop/mrcpp-1.4.1/src/treebuilders/project.h:29,
from /home/canary/Desktop/mrcpp-1.4.1/src/functions/BoysFunction.cpp:28:
/home/canary/Desktop/mrcpp-1.4.1/src/trees/MWTree.h:134:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
134 | std::unique_ptr<NodeAllocator<D>> nodeAllocator_p{nullptr};
| ^~~~~~~~~~
/home/canary/Desktop/mrcpp-1.4.1/src/trees/MWTree.h:36:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
35 | #include "NodeBox.h"
+++ |+#include <memory>
36 |
/home/canary/Desktop/mrcpp-1.4.1/src/trees/FunctionTree.h:106:10: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
106 | std::unique_ptr<NodeAllocator<D>> genNodeAllocator_p{nullptr};
| ^~~~~~~~~~
/home/canary/Desktop/mrcpp-1.4.1/src/trees/FunctionTree.h:31:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
30 | #include "MWTree.h"
+++ |+#include <memory>
31 | #include "NodeAllocator.h"
make[2]: *** [src/CMakeFiles/mrcpp.dir/build.make:205: src/CMakeFiles/mrcpp.dir/functions/BoysFunction.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1150: src/CMakeFiles/mrcpp.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Is there something wrong with my configuration?
Tenshi65535 commented
Found the problem. Closing this issue.