This repository was archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
This repository was archived by the owner on Dec 6, 2022. It is now read-only.
ubuntu 22.04 make error #4
Copy link
Copy link
Open
Description
after changing CMakeLists.txt to point to directly to /usr/include/tbb, cmake is successful but hits an error in the tbb library (package version 2021.5.0-7ubuntu2)
In file included from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:48:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h: At global scope:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:61:38: error: expected class-name before ‘{’ token
61 | class lambda_task : public tbb::task {
| ^
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:63:10: error: ‘task’ in namespace ‘tbb’ does not name a type
63 | tbb::task* execute() {
| ^~~~
In file included from /usr/include/tbb/task.h:17,
from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:31:
/usr/include/oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
26 | namespace task {
| ^~~~
In file included from /home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:48:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h: In function ‘void tbb_enqueue_lambda(const F&)’:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:73:16: error: ‘enqueue’ is not a member of ‘tbb::v1::task’
73 | tbb::task::enqueue(*new(tbb::task::allocate_root()) lambda_task<F>(f));
| ^~~~~~~
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.h:73:40: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
73 | tbb::task::enqueue(*new(tbb::task::allocate_root()) lambda_task<F>(f));
| ^~~~~~~~~~~~~
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc: In member function ‘Json::Value opencog::AtomSpacePublisherModule::atomToJSON(opencog::Handle)’:
/home/mozi/oc/atomspace-restful/opencog/events/AtomSpacePublisherModule.cc:196:40: error: cannot convert ‘std::back_insert_iterator<std::vector<opencog::Handle> >’ to ‘const opencog::AtomSpace*’
196 | h->getIncomingSet(back_inserter(incomingHandles));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
| |
| std::back_insert_iterator<std::vector<opencog::Handle> >
Metadata
Metadata
Assignees
Labels
No labels