ObjectTracker icon indicating copy to clipboard operation
ObjectTracker copied to clipboard

Error Make

Open ARHLANE opened this issue 7 years ago • 3 comments

Hello thank you for sharing your code I have tried to compile your projects but i receives the following error Scanning dependencies of target main [ 6%] Building CXX object CMakeFiles/main.dir/src/ground_truth/ground_truth_log.cpp.o [ 13%] Building CXX object CMakeFiles/main.dir/src/lib/disjoint_set.cpp.o /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp: In copy constructor 'DisjointSets::DisjointSets(const DisjointSets&)': /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp:36:33: error: 'NULL' was not declared in this scope if(m_nodes[i]->parent !=NULL) ^ /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp: In member function 'int DisjointSets::FindSet(int) const': /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp:58:30: error: 'NULL' was not declared in this scope while(curNode->parent != NULL) ^ /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp: In member function 'void DisjointSets::AddElements(int)': /home/arhlane/ObjectTracker/src/lib/disjoint_set.cpp:109:52: error: 'NULL' was not declared in this scope m_nodes.insert(m_nodes.end(), numToAdd, (Node*)NULL); ^ make[2]: *** [CMakeFiles/main.dir/src/lib/disjoint_set.cpp.o] Error 1 make[1]: *** [CMakeFiles/main.dir/all] Error 2 make: *** [all] Error 2

ARHLANE avatar May 26 '17 19:05 ARHLANE

I have the same issue, can somebody please help...

Wenuka avatar Sep 07 '17 16:09 Wenuka

Hello, I am having the same issue: CMakeFiles/main.dir/build.make:86: recipe for target 'CMakeFiles/main.dir/src/lib/disjoint_set.cpp.o' failed

make[2]: *** [CMakeFiles/main.dir/src/lib/disjoint_set.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failed make[1]: *** [CMakeFiles/main.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Could you help or guide us please.

Many thanks

ajajar avatar Nov 22 '17 13:11 ajajar

The NULL issue can be fixed by adding #include <cstddef> to disjoint_set.cpp

saihv avatar Nov 23 '17 18:11 saihv