Compilation Error in Jetson Orin Nano #251

Open
opened 2026-01-17 03:11:19 +01:00 by deulis · 1 comment
deulis commented 2026-01-17 03:11:19 +01:00 (Migrated from github.com)

I am not the only one with this problem (as I can see in the Pull requests). I got the following error:

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_;
      |        ^~~~~~~~~~
sdk_core/src/base/thread_base.h:30:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?

Like the compile recommend, I added the include:
#include <memory>
in the file:
sdk_core/src/base/thread_base.h

and the compilation was successful!

I am not the only one with this problem (as I can see in the Pull requests). I got the following error: ``` 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_; | ^~~~~~~~~~ sdk_core/src/base/thread_base.h:30:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? ``` Like the compile recommend, I added the include: `#include <memory>` in the file: sdk_core/src/base/thread_base.h and the compilation was successful!
neolu commented 2026-02-07 02:33:08 +01:00 (Migrated from github.com)
c++ STANDARD https://github.com/neolu/Livox-SDK
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/Livox-SDK#251