stack_cd.cpp

  name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-5572165936844014&dt=1194442938015&lmt=1194190197&format=336x280_as&output=html&correlator=1194442937843&url=file%3A%2F%2F%2FC%3A%2FDocuments%2520and%2520Settings%2Flhh1%2F%E6%A1%8C%E9%9D%A2%2FCLanguage.htm&color_bg=FFFFFF&color_text=000000&color_link=000000&color_url=FFFFFF&color_border=FFFFFF&ad_type=text&ga_vid=583001034.1194442938&ga_sid=1194442938&ga_hid=1942779085&flash=9&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency"> #include <iostream.h>
#define ARR_SIZE 100

class stack
{
   int stck[ARR_SIZE];
   int stack_top;
 public:
  stack();
   ~stack();
   void push(int i);
   int pop();
 };

stack::stack(void)
 {
  stack_top = 0;
   cout << "Stack Initialized" << endl;
 }

stack::~stack(void)
 {
  cout << "Stack Destroyed" << endl;
 }

void stack::push(int i)
 {
  if (stack_top==ARR_SIZE)
    {
     cout << "Stack is full." << endl;
      return;
    }
   stck[stack_top] = i;
   stack_top++;
 }

int stack::pop(void)
 {
  if (stack_top==0)
    {
     cout << "Stack underflow." << endl;
      return 0;
    }
   stack_top--;
   return stck[stack_top];
 }

void main(void)
 {
  stack obj1, obj2;

   obj1.push(1);
   obj2.push(2);
   obj1.push(3);
   obj2.push(4);
   cout << obj1.pop() << endl;
   cout << obj1.pop() << endl;
   cout << obj2.pop() << endl;
   cout << obj2.pop() << endl;
 }
 

 

user@YBXzuiniubi:~/Livox-SDK/build$ cmake .. make sudo make install -- main project dir: /home/user/Livox-SDK -- Configuring done -- Generating done -- Build files have been written to: /home/user/Livox-SDK/build Consolidate compiler generated dependencies of target livox_sdk_static [ 2%] Building CXX object sdk_core/CMakeFiles/livox_sdk_static.dir/src/base/thread_base.cpp.o In file included from /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:25: /home/user/Livox-SDK/sdk_core/src/base/thread_base.h:46:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type 46 | std::shared_ptr<std::thread> thread_; | ^~~~~~~~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.h:30:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? 29 | #include "noncopyable.h" +++ |+#include <memory> 30 | /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp: In member function ‘virtual bool livox::ThreadBase::Start()’: /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:3: error: ‘thread_’ was not declared in this scope; did you mean ‘pthread_t’? 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~~~~ | pthread_t /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:18: error: ‘make_shared’ is not a member of ‘std’ 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~~~~~~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:26:1: note: ‘std::make_shared’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? 25 | #include "thread_base.h" +++ |+#include <memory> 26 | #include <thread> /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:41: error: expected primary-expression before ‘>’ token 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:68: error: left operand of comma operator has no effect [-Werror=unused-value] 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp: In member function ‘virtual void livox::ThreadBase::Join()’: /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:41:5: error: ‘thread_’ was not declared in this scope; did you mean ‘pthread_t’? 41 | thread_->join(); | ^~~~~~~ | pthread_t At global scope: cc1plus: note: unrecognized command-line option ‘-Wno-c++11-long-long’ may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors make[2]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/build.make:104: sdk_core/CMakeFiles/livox_sdk_static.dir/src/base/thread_base.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:242: sdk_core/CMakeFiles/livox_sdk_static.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 Consolidate compiler generated dependencies of target livox_sdk_static [ 2%] Building CXX object sdk_core/CMakeFiles/livox_sdk_static.dir/src/base/thread_base.cpp.o In file included from /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:25: /home/user/Livox-SDK/sdk_core/src/base/thread_base.h:46:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type 46 | std::shared_ptr<std::thread> thread_; | ^~~~~~~~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.h:30:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? 29 | #include "noncopyable.h" +++ |+#include <memory> 30 | /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp: In member function ‘virtual bool livox::ThreadBase::Start()’: /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:3: error: ‘thread_’ was not declared in this scope; did you mean ‘pthread_t’? 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~~~~ | pthread_t /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:18: error: ‘make_shared’ is not a member of ‘std’ 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~~~~~~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:26:1: note: ‘std::make_shared’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? 25 | #include "thread_base.h" +++ |+#include <memory> 26 | #include <thread> /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:41: error: expected primary-expression before ‘>’ token 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:34:68: error: left operand of comma operator has no effect [-Werror=unused-value] 34 | thread_ = std::make_shared<std::thread>(&ThreadBase::ThreadFunc, this); | ^~~~ /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp: In member function ‘virtual void livox::ThreadBase::Join()’: /home/user/Livox-SDK/sdk_core/src/base/thread_base.cpp:41:5: error: ‘thread_’ was not declared in this scope; did you mean ‘pthread_t’? 41 | thread_->join(); | ^~~~~~~ | pthread_t At global scope: cc1plus: note: unrecognized command-line option ‘-Wno-c++11-long-long’ may have been intended to silence earlier diagnostics cc1plus: all warnings being treated as errors make[2]: *** [sdk_core/CMakeFiles/livox_sdk_static.dir/build.make:104: sdk_core/CMakeFiles/livox_sdk_static.dir/src/base/thread_base.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:242: sdk_core/CMakeFiles/livox_sdk_static.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 user@YBXzuiniubi:~/Livox-SDK/build$
09-20
In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:296:39: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11 [enabled by default] G_EXPLICIT_OP operator bool() const G_NOEXCEPT ^ src/greenlet/greenlet_greenlet.hpp:296:39: error: expected ‘;’ at end of member declaration In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:296:45: note: in expansion of macro ‘G_NOEXCEPT’ G_EXPLICIT_OP operator bool() const G_NOEXCEPT ^ src/greenlet/greenlet_compiler_compat.hpp:79:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls(const Cls& other) = delete; \ ^ src/greenlet/greenlet_greenlet.hpp:316:9: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(Greenlet); ^ src/greenlet/greenlet_compiler_compat.hpp:80:40: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls& operator=(const Cls& other) = delete ^ src/greenlet/greenlet_greenlet.hpp:316:9: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(Greenlet); ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:345:39: error: expected ‘;’ at end of member declaration inline intptr_t stack_saved() const G_NOEXCEPT ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:345:45: note: in expansion of macro ‘G_NOEXCEPT’ inline intptr_t stack_saved() const G_NOEXCEPT ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:355:42: error: expected ‘;’ at end of member declaration inline const char* stack_start() const G_NOEXCEPT ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:355:48: note: in expansion of macro ‘G_NOEXCEPT’ inline const char* stack_start() const G_NOEXCEPT ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:389:39: error: expected ‘;’ at end of member declaration inline void slp_restore_state() G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:389:41: note: in expansion of macro ‘G_NOEXCEPT’ inline void slp_restore_state() G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:390:55: error: expected ‘;’ at end of member declaration inline int slp_save_state(char *const stackref) G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:390:57: note: in expansion of macro ‘G_NOEXCEPT’ inline int slp_save_state(char *const stackref) G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:428:45: error: expected ‘;’ at end of member declaration virtual ThreadState* thread_state() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:428:51: note: in expansion of macro ‘G_NOEXCEPT’ virtual ThreadState* thread_state() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:432:51: error: expected ‘;’ at end of member declaration virtual bool was_running_in_dead_thread() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:432:57: note: in expansion of macro ‘G_NOEXCEPT’ virtual bool was_running_in_dead_thread() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:436:41: error: expected ‘;’ at end of member declaration virtual BorrowedGreenlet self() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:436:47: note: in expansion of macro ‘G_NOEXCEPT’ virtual BorrowedGreenlet self() const G_NOEXCEPT = 0; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:490:53: error: expected ‘;’ at end of member declaration virtual OwnedGreenlet g_switchstack_success() G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:490:55: note: in expansion of macro ‘G_NOEXCEPT’ virtual OwnedGreenlet g_switchstack_success() G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:333:63: error: ‘nullptr’ was not declared in this scope const OwnedObject context(const typename IsPy37::IsIt=nullptr) const; ^ src/greenlet/greenlet_greenlet.hpp:336:85: error: ‘nullptr’ was not declared in this scope inline void context(refs::BorrowedObject new_context, typename IsPy37::IsIt=nullptr); ^ src/greenlet/greenlet_greenlet.hpp: In constructor ‘greenlet::Greenlet::switchstack_result_t::switchstack_result_t()’: src/greenlet/greenlet_greenlet.hpp:458:43: error: ‘nullptr’ was not declared in this scope the_state_that_switched(nullptr) ^ src/greenlet/greenlet_greenlet.hpp: In constructor ‘greenlet::Greenlet::switchstack_result_t::switchstack_result_t(int)’: src/greenlet/greenlet_greenlet.hpp:463:43: error: ‘nullptr’ was not declared in this scope the_state_that_switched(nullptr) ^ src/greenlet/greenlet_greenlet.hpp: At global scope: src/greenlet/greenlet_greenlet.hpp:561:51: error: expected ‘;’ at end of member declaration virtual bool was_running_in_dead_thread() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:561:57: note: in expansion of macro ‘G_NOEXCEPT’ virtual bool was_running_in_dead_thread() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:562:45: error: expected ‘;’ at end of member declaration virtual ThreadState* thread_state() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:562:51: note: in expansion of macro ‘G_NOEXCEPT’ virtual ThreadState* thread_state() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:578:41: error: expected ‘;’ at end of member declaration virtual BorrowedGreenlet self() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:578:47: note: in expansion of macro ‘G_NOEXCEPT’ virtual BorrowedGreenlet self() const G_NOEXCEPT; ^ src/greenlet/greenlet_compiler_compat.hpp:79:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls(const Cls& other) = delete; \ ^ src/greenlet/greenlet_greenlet.hpp:588:13: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(ParentIsCurrentGuard); ^ src/greenlet/greenlet_compiler_compat.hpp:80:40: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls& operator=(const Cls& other) = delete ^ src/greenlet/greenlet_greenlet.hpp:588:13: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(ParentIsCurrentGuard); ^ src/greenlet/greenlet_compiler_compat.hpp:79:29: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls(const Cls& other) = delete; \ ^ src/greenlet/greenlet_greenlet.hpp:606:9: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(MainGreenlet); ^ src/greenlet/greenlet_compiler_compat.hpp:80:40: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default] Cls& operator=(const Cls& other) = delete ^ src/greenlet/greenlet_greenlet.hpp:606:9: note: in expansion of macro ‘G_NO_COPIES_OF_CLS’ G_NO_COPIES_OF_CLS(MainGreenlet); ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:624:51: error: expected ‘;’ at end of member declaration virtual bool was_running_in_dead_thread() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:624:57: note: in expansion of macro ‘G_NOEXCEPT’ virtual bool was_running_in_dead_thread() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:625:45: error: expected ‘;’ at end of member declaration virtual ThreadState* thread_state() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:625:51: note: in expansion of macro ‘G_NOEXCEPT’ virtual ThreadState* thread_state() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:626:39: error: expected ‘;’ at end of member declaration void thread_state(ThreadState*) G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:626:41: note: in expansion of macro ‘G_NOEXCEPT’ void thread_state(ThreadState*) G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:628:41: error: expected ‘;’ at end of member declaration virtual BorrowedGreenlet self() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_internal.hpp:17:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_compiler_compat.hpp:66:20: error: ‘noexcept’ does not name a type #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:628:47: note: in expansion of macro ‘G_NOEXCEPT’ virtual BorrowedGreenlet self() const G_NOEXCEPT; ^ src/greenlet/greenlet_compiler_compat.hpp:66:20: error: expected initializer before ‘noexcept’ #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:694:68: note: in expansion of macro ‘G_NOEXCEPT’ void ExceptionState::operator<<(const PyThreadState *const tstate) G_NOEXCEPT ^ src/greenlet/greenlet_compiler_compat.hpp:66:20: error: expected initializer before ‘noexcept’ #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:703:62: note: in expansion of macro ‘G_NOEXCEPT’ void ExceptionState::operator>>(PyThreadState *const tstate) G_NOEXCEPT ^ src/greenlet/greenlet_compiler_compat.hpp:66:20: error: expected initializer before ‘noexcept’ #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:713:30: note: in expansion of macro ‘G_NOEXCEPT’ void ExceptionState::clear() G_NOEXCEPT ^ src/greenlet/greenlet_compiler_compat.hpp:66:20: error: expected initializer before ‘noexcept’ #define G_NOEXCEPT noexcept ^ src/greenlet/greenlet_greenlet.hpp:722:61: note: in expansion of macro ‘G_NOEXCEPT’ int ExceptionState::tp_traverse(visitproc visit, void* arg) G_NOEXCEPT ^ src/greenlet/greenlet.cpp:187:32: error: expected declaration before end of line # pragma GCC diagnostic push ^ In file included from src/greenlet/greenlet_greenlet.hpp:11:0, from src/greenlet/greenlet_internal.hpp:20, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_refs.hpp:67:9: warning: inline function ‘void greenlet::refs::MainGreenletExactChecker(void*)’ used but never defined [enabled by default] MainGreenletExactChecker(void *p); ^ src/greenlet/greenlet_refs.hpp:181:19: warning: inline function ‘T* greenlet::refs::PyObjectPointer<T, <anonymous> >::borrow() const [with T = _greenlet; void (* TC)(void*) = greenlet::refs::MainGreenletExactChecker]’ used but never defined [enabled by default] inline T* borrow() const G_NOEXCEPT ^ src/greenlet/greenlet_refs.hpp:181:19: warning: inline function ‘T* greenlet::refs::PyObjectPointer<T, <anonymous> >::borrow() const [with T = _object; void (* TC)(void*) = greenlet::refs::NoOpChecker]’ used but never defined [enabled by default] src/greenlet/greenlet_refs.hpp:191:19: warning: inline function ‘T* greenlet::refs::PyObjectPointer<T, <anonymous> >::operator->() const [with T = _object; void (* TC)(void*) = greenlet::refs::NoOpChecker]’ used but never defined [enabled by default] inline T* operator->() const G_NOEXCEPT ^ In file included from src/greenlet/greenlet_internal.hpp:20:0, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_greenlet.hpp:209:21: warning: inline function ‘bool greenlet::StackState::started() const’ used but never defined [enabled by default] inline bool started() const G_NOEXCEPT; ^ src/greenlet/greenlet_greenlet.hpp:211:21: warning: inline function ‘bool greenlet::StackState::active() const’ used but never defined [enabled by default] inline bool active() const G_NOEXCEPT; ^ src/greenlet/greenlet_greenlet.hpp:210:21: warning: inline function ‘bool greenlet::StackState::main() const’ used but never defined [enabled by default] inline bool main() const G_NOEXCEPT; ^ In file included from src/greenlet/greenlet_greenlet.hpp:11:0, from src/greenlet/greenlet_internal.hpp:20, from src/greenlet/greenlet.cpp:19: src/greenlet/greenlet_refs.hpp:181:19: warning: inline function ‘T* greenlet::refs::PyObjectPointer<T, <anonymous> >::borrow() const [with T = _greenlet; void (* TC)(void*) = greenlet::refs::GreenletChecker]’ used but never defined [enabled by default] inline T* borrow() const G_NOEXCEPT ^ error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-30998ynj/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-jfkgxde5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-30998ynj/greenlet/ 还是报错,Python.h再文件夹中可以看到
07-23
u1804@u1804-Lenovo-Legion-R9000K2021H:~/study/cartographer_install$ ./auto-carto-build.sh [sudo] u1804 的密码: /home/u1804/study/cartographer_install -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Build type: Release 文件 /home/u1804/study/cartographer_install/cartographer/build/AllFiles.cmake 和 - 不同 -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found GMock: /usr/local/lib/libgmock_main.a;/usr/local/lib/libgmock.a;/usr/local/lib/libgtest.a;-lpthread CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (Threads) does not match the name of the calling package (absl). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/local/share/cmake-3.20/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /usr/local/lib/cmake/absl/abslConfig.cmake:3 (include) CMakeLists.txt:32 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found Boost: /usr/include (found version "1.65.1") found components: iostreams regex -- Found installed version of Eigen: /usr/lib/cmake/eigen3 -- Found required Ceres dependency: Eigen version 3.3.4 in /usr/include/eigen3 -- Found required Ceres dependency: glog -- Found installed version of gflags: /usr/lib/x86_64-linux-gnu/cmake/gflags -- Detected gflags version: 2.2.1 -- Found required Ceres dependency: gflags -- Found Ceres version: 1.13.0 installed in: /usr/local with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, C++11, OpenMP] CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (Lua) does not match the name of the calling package (LuaGoogle). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/modules/FindLuaGoogle.cmake:211 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:41 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.2.4") -- Found Protobuf: /usr/local/lib/libprotobuf.a;-lpthread (found suitable version "3.4.0", minimum required is "3.0.0") -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for one of the modules 'cairo>=1.12.16' -- Found Sphinx: /usr/bin/sphinx-build -- Configuring done -- Generating done -- Build files have been written to: /home/u1804/study/cartographer_install/cartographer/build [42/381] cd /home/u1804/study/cartogra...all/cartographer/build/AllFiles.cmake" 文件 /home/u1804/study/cartographer_install/cartographer/build/AllFiles.cmake 和 - 不同 [43/381] Building documentation. Running Sphinx v1.6.7 making output directory... loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [html]: targets for 6 source files that are out of date updating environment: 6 added, 0 changed, 0 removed reading sources... [ 16%] configuration reading sources... [ 33%] cost_functions reading sources... [ 50%] evaluation reading sources... [ 66%] index reading sources... [ 83%] pbstream_migration reading sources... [100%] terminology looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 16%] configuration writing output... [ 33%] cost_functions writing output... [ 50%] evaluation writing output... [ 66%] index writing output... [ 83%] pbstream_migration writing output... [100%] terminology generating indices... genindex writing additional pages... search copying images... [ 50%] high_level_system_overview.png copying images... [100%] autogenerate_groundtruth.png copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. [265/381] Linking CXX executable cartographer_print_configuration FAILED: cartographer_print_configuration : && /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o -o cartographer_print_configuration libcartographer.a /usr/local/lib/libceres.a -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lspqr -ltbb -ltbbmalloc -lcholmod -lccolamd -lcamd -lcolamd -lamd -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -lgomp -llua5.2 -lm -lboost_iostreams -lboost_regex -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lcairo /usr/local/lib/libprotobuf.a /usr/local/lib/libabsl_leak_check.a /usr/local/lib/libabsl_hash.a /usr/local/lib/libabsl_bad_variant_access.a /usr/local/lib/libabsl_city.a /usr/local/lib/libabsl_raw_hash_set.a /usr/local/lib/libabsl_bad_optional_access.a /usr/local/lib/libabsl_hashtablez_sampler.a /usr/local/lib/libabsl_str_format_internal.a /usr/local/lib/libabsl_synchronization.a /usr/local/lib/libabsl_stacktrace.a /usr/local/lib/libabsl_graphcycles_internal.a /usr/local/lib/libabsl_symbolize.a /usr/local/lib/libabsl_malloc_internal.a /usr/local/lib/libabsl_debugging_internal.a /usr/local/lib/libabsl_demangle_internal.a /usr/local/lib/libabsl_time.a /usr/local/lib/libabsl_strings.a /usr/local/lib/libabsl_strings_internal.a /usr/local/lib/libabsl_throw_delegate.a /usr/local/lib/libabsl_base.a /usr/local/lib/libabsl_dynamic_annotations.a /usr/local/lib/libabsl_spinlock_wait.a -lpthread /usr/local/lib/libabsl_int128.a /usr/local/lib/libabsl_civil_time.a /usr/local/lib/libabsl_time_zone.a -lpthread && : CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o:在函数‘cartographer::common::PrintSubdictionaryById(cartographer::common::LuaParameterDictionary*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’中: print_configuration_main.cc:(.text+0x2c3):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 print_configuration_main.cc:(.text+0x84d):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o:在函数‘absl::strings_internal::Splitter<absl::ByChar, absl::SkipEmpty>::ConvertToContainer<std::vector<std::basic_string_view<char, std::char_traits<char> >, std::allocator<std::basic_string_view<char, std::char_traits<char> > > >, std::basic_string_view<char, std::char_traits<char> >, false>::operator()(absl::strings_internal::Splitter<absl::ByChar, absl::SkipEmpty> const&) const’中: print_configuration_main.cc:(.text._ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_[_ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_]+0x105):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 print_configuration_main.cc:(.text._ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_[_ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_]+0x20d):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 collect2: error: ld returned 1 exit status [266/381] Linking CXX executable cartographer_pbstream FAILED: cartographer_pbstream : && /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/cartographer_pbstream.dir/cartographer/io/pbstream_main.cc.o -o cartographer_pbstream libcartographer.a /usr/local/lib/libceres.a -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lspqr -ltbb -ltbbmalloc -lcholmod -lccolamd -lcamd -lcolamd -lamd -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -lgomp -llua5.2 -lm -lboost_iostreams -lboost_regex -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lcairo /usr/local/lib/libprotobuf.a /usr/local/lib/libabsl_leak_check.a /usr/local/lib/libabsl_hash.a /usr/local/lib/libabsl_bad_variant_access.a /usr/local/lib/libabsl_city.a /usr/local/lib/libabsl_raw_hash_set.a /usr/local/lib/libabsl_bad_optional_access.a /usr/local/lib/libabsl_hashtablez_sampler.a /usr/local/lib/libabsl_str_format_internal.a /usr/local/lib/libabsl_synchronization.a /usr/local/lib/libabsl_stacktrace.a /usr/local/lib/libabsl_graphcycles_internal.a /usr/local/lib/libabsl_symbolize.a /usr/local/lib/libabsl_malloc_internal.a /usr/local/lib/libabsl_debugging_internal.a /usr/local/lib/libabsl_demangle_internal.a /usr/local/lib/libabsl_time.a /usr/local/lib/libabsl_strings.a /usr/local/lib/libabsl_strings_internal.a /usr/local/lib/libabsl_throw_delegate.a /usr/local/lib/libabsl_base.a /usr/local/lib/libabsl_dynamic_annotations.a /usr/local/lib/libabsl_spinlock_wait.a -lpthread /usr/local/lib/libabsl_int128.a /usr/local/lib/libabsl_civil_time.a /usr/local/lib/libabsl_time_zone.a -lpthread && : libcartographer.a(histogram.cc.o):在函数‘cartographer::common::Histogram::ToString[abi:cxx11](int) const’中: histogram.cc:(.text+0x3f4):对‘absl::strings_internal::CatPieces[abi:cxx11](std::initializer_list<std::basic_string_view<char, std::char_traits<char> > >)’未定义的引用 histogram.cc:(.text+0xb60):对‘absl::strings_internal::AppendPieces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::initializer_list<std::basic_string_view<char, std::char_traits<char> > >)’未定义的引用 collect2: error: ld returned 1 exit status [282/381] Building CXX object CMakeFiles/car...nal/3d/local_trajectory_builder_3d_test.cc.o ninja: build stopped: subcommand failed. [2/104] Linking CXX executable cartographer_print_configuration FAILED: cartographer_print_configuration : && /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o -o cartographer_print_configuration libcartographer.a /usr/local/lib/libceres.a -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lspqr -ltbb -ltbbmalloc -lcholmod -lccolamd -lcamd -lcolamd -lamd -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -lgomp -llua5.2 -lm -lboost_iostreams -lboost_regex -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lcairo /usr/local/lib/libprotobuf.a /usr/local/lib/libabsl_leak_check.a /usr/local/lib/libabsl_hash.a /usr/local/lib/libabsl_bad_variant_access.a /usr/local/lib/libabsl_city.a /usr/local/lib/libabsl_raw_hash_set.a /usr/local/lib/libabsl_bad_optional_access.a /usr/local/lib/libabsl_hashtablez_sampler.a /usr/local/lib/libabsl_str_format_internal.a /usr/local/lib/libabsl_synchronization.a /usr/local/lib/libabsl_stacktrace.a /usr/local/lib/libabsl_graphcycles_internal.a /usr/local/lib/libabsl_symbolize.a /usr/local/lib/libabsl_malloc_internal.a /usr/local/lib/libabsl_debugging_internal.a /usr/local/lib/libabsl_demangle_internal.a /usr/local/lib/libabsl_time.a /usr/local/lib/libabsl_strings.a /usr/local/lib/libabsl_strings_internal.a /usr/local/lib/libabsl_throw_delegate.a /usr/local/lib/libabsl_base.a /usr/local/lib/libabsl_dynamic_annotations.a /usr/local/lib/libabsl_spinlock_wait.a -lpthread /usr/local/lib/libabsl_int128.a /usr/local/lib/libabsl_civil_time.a /usr/local/lib/libabsl_time_zone.a -lpthread && : CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o:在函数‘cartographer::common::PrintSubdictionaryById(cartographer::common::LuaParameterDictionary*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’中: print_configuration_main.cc:(.text+0x2c3):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 print_configuration_main.cc:(.text+0x84d):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 CMakeFiles/cartographer_print_configuration.dir/cartographer/common/print_configuration_main.cc.o:在函数‘absl::strings_internal::Splitter<absl::ByChar, absl::SkipEmpty>::ConvertToContainer<std::vector<std::basic_string_view<char, std::char_traits<char> >, std::allocator<std::basic_string_view<char, std::char_traits<char> > > >, std::basic_string_view<char, std::char_traits<char> >, false>::operator()(absl::strings_internal::Splitter<absl::ByChar, absl::SkipEmpty> const&) const’中: print_configuration_main.cc:(.text._ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_[_ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_]+0x105):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 print_configuration_main.cc:(.text._ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_[_ZNK4absl16strings_internal8SplitterINS_6ByCharENS_9SkipEmptyEE18ConvertToContainerISt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaISA_EESA_Lb0EEclERKS4_]+0x20d):对‘absl::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const’未定义的引用 collect2: error: ld returned 1 exit status [3/104] Linking CXX executable cartographer.transform.rigid_transform_test FAILED: cartographer.transform.rigid_transform_test : && /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o -o cartographer.transform.rigid_transform_test libcartographer.a /usr/local/lib/libgmock_main.a /usr/local/lib/libgmock.a /usr/local/lib/libgtest.a -lpthread libcartographer_test_library.a libcartographer.a /usr/local/lib/libceres.a -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lspqr -ltbb -ltbbmalloc -lcholmod -lccolamd -lcamd -lcolamd -lamd -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -lgomp -llua5.2 -lm -lboost_iostreams -lboost_regex -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lcairo /usr/local/lib/libprotobuf.a /usr/local/lib/libabsl_leak_check.a /usr/local/lib/libabsl_hash.a /usr/local/lib/libabsl_bad_variant_access.a /usr/local/lib/libabsl_city.a /usr/local/lib/libabsl_raw_hash_set.a /usr/local/lib/libabsl_bad_optional_access.a /usr/local/lib/libabsl_hashtablez_sampler.a /usr/local/lib/libabsl_str_format_internal.a /usr/local/lib/libabsl_synchronization.a /usr/local/lib/libabsl_stacktrace.a /usr/local/lib/libabsl_graphcycles_internal.a /usr/local/lib/libabsl_symbolize.a /usr/local/lib/libabsl_malloc_internal.a /usr/local/lib/libabsl_debugging_internal.a /usr/local/lib/libabsl_demangle_internal.a /usr/local/lib/libabsl_time.a /usr/local/lib/libabsl_strings.a /usr/local/lib/libabsl_strings_internal.a /usr/local/lib/libabsl_throw_delegate.a /usr/local/lib/libabsl_base.a /usr/local/lib/libabsl_dynamic_annotations.a /usr/local/lib/libabsl_spinlock_wait.a -lpthread /usr/local/lib/libabsl_int128.a /usr/local/lib/libabsl_civil_time.a /usr/local/lib/libabsl_time_zone.a -lpthread /usr/local/lib/libgmock.a && : CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:在函数‘std::ostream& cartographer::transform::operator<< <double>(std::ostream&, cartographer::transform::Rigid2<double> const&)’中: rigid_transform_test.cc:(.text._ZN12cartographer9transformlsIdEERSoS2_RKNS0_6Rigid2IT_EE[_ZN12cartographer9transformlsIdEERSoS2_RKNS0_6Rigid2IT_EE]+0x110):对‘absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long)’未定义的引用 CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:在函数‘std::ostream& cartographer::transform::operator<< <float>(std::ostream&, cartographer::transform::Rigid2<float> const&)’中: rigid_transform_test.cc:(.text._ZN12cartographer9transformlsIfEERSoS2_RKNS0_6Rigid2IT_EE[_ZN12cartographer9transformlsIfEERSoS2_RKNS0_6Rigid2IT_EE]+0x11c):对‘absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long)’未定义的引用 CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:在函数‘cartographer::transform::Rigid3<double>::DebugString[abi:cxx11]() const’中: rigid_transform_test.cc:(.text._ZNK12cartographer9transform6Rigid3IdE11DebugStringB5cxx11Ev[_ZNK12cartographer9transform6Rigid3IdE11DebugStringB5cxx11Ev]+0x20f):对‘absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long)’未定义的引用 CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:在函数‘cartographer::transform::Rigid3<float>::DebugString[abi:cxx11]() const’中: rigid_transform_test.cc:(.text._ZNK12cartographer9transform6Rigid3IfE11DebugStringB5cxx11Ev[_ZNK12cartographer9transform6Rigid3IfE11DebugStringB5cxx11Ev]+0x22b):对‘absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long)’未定义的引用 CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:在函数‘cartographer::transform::IsNearlyMatcherP2<cartographer::transform::Rigid2<float>, float>::gmock_Impl<cartographer::transform::Rigid2<float> const&>::FormatDescription[abi:cxx11](bool) const’中: rigid_transform_test.cc:(.text._ZNK12cartographer9transform17IsNearlyMatcherP2INS0_6Rigid2IfEEfE10gmock_ImplIRKS3_E17FormatDescriptionB5cxx11Eb[_ZNK12cartographer9transform17IsNearlyMatcherP2INS0_6Rigid2IfEEfE10gmock_ImplIRKS3_E17FormatDescriptionB5cxx11Eb]+0x17f):对‘absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long)’未定义的引用 CMakeFiles/cartographer.transform.rigid_transform_test.dir/cartographer/transform/rigid_transform_test.cc.o:rigid_transform_test.cc:(.text._ZNK12cartographer9transform17IsNearlyMatcherP2INS0_6Rigid2IdEEdE10gmock_ImplIRKS3_E17FormatDescriptionB5cxx11Eb[_ZNK12cartographer9transform17IsNearlyMatcherP2INS0_6Rigid2IdEEdE10gmock_ImplIRKS3_E17FormatDescriptionB5cxx11Eb]+0x173): 跟着更多未定义的参考到 absl::substitute_internal::SubstituteAndAppendArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > const*, unsigned long) collect2: error: ld returned 1 exit status [4/104] Linking CXX executable cartographer_pbstream FAILED: cartographer_pbstream : && /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/cartographer_pbstream.dir/cartographer/io/pbstream_main.cc.o -o cartographer_pbstream libcartographer.a /usr/local/lib/libceres.a -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lspqr -ltbb -ltbbmalloc -lcholmod -lccolamd -lcamd -lcolamd -lamd -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -llapack -lblas -lf77blas -latlas -lsuitesparseconfig -lrt -lcxsparse -lgomp -llua5.2 -lm -lboost_iostreams -lboost_regex -lglog /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.1 -lcairo /usr/local/lib/libprotobuf.a /usr/local/lib/libabsl_leak_check.a /usr/local/lib/libabsl_hash.a /usr/local/lib/libabsl_bad_variant_access.a /usr/local/lib/libabsl_city.a /usr/local/lib/libabsl_raw_hash_set.a /usr/local/lib/libabsl_bad_optional_access.a /usr/local/lib/libabsl_hashtablez_sampler.a /usr/local/lib/libabsl_str_format_internal.a /usr/local/lib/libabsl_synchronization.a /usr/local/lib/libabsl_stacktrace.a /usr/local/lib/libabsl_graphcycles_internal.a /usr/local/lib/libabsl_symbolize.a /usr/local/lib/libabsl_malloc_internal.a /usr/local/lib/libabsl_debugging_internal.a /usr/local/lib/libabsl_demangle_internal.a /usr/local/lib/libabsl_time.a /usr/local/lib/libabsl_strings.a /usr/local/lib/libabsl_strings_internal.a /usr/local/lib/libabsl_throw_delegate.a /usr/local/lib/libabsl_base.a /usr/local/lib/libabsl_dynamic_annotations.a /usr/local/lib/libabsl_spinlock_wait.a -lpthread /usr/local/lib/libabsl_int128.a /usr/local/lib/libabsl_civil_time.a /usr/local/lib/libabsl_time_zone.a -lpthread && : libcartographer.a(histogram.cc.o):在函数‘cartographer::common::Histogram::ToString[abi:cxx11](int) const’中: histogram.cc:(.text+0x3f4):对‘absl::strings_internal::CatPieces[abi:cxx11](std::initializer_list<std::basic_string_view<char, std::char_traits<char> > >)’未定义的引用 histogram.cc:(.text+0xb60):对‘absl::strings_internal::AppendPieces(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::initializer_list<std::basic_string_view<char, std::char_traits<char> > >)’未定义的引用 collect2: error: ld returned 1 exit status [19/104] Building CXX object CMakeFiles/cart...unctions/landmark_cost_function_3d_test.cc.o ninja: build stopped: subcommand failed. u1804@u1804-Lenovo-Legion-R9000K2021H:~/study/cartographer_install$
08-21
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值