fix: compile error when using libstdc++11 #163
Reference in New Issue
Block a user
Delete Branch "yushijinhun/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When compiling Livox-SDK with libstdc++11 and clang 15, I encounter the following error:
This PR fixes the problem by adding the missing
<memory>header file.Why this error occurs? The compilation should be retro-compatible with older gcc versions, right?
thread_base.huses declarations from<memory>without explicitly including it. This does work on some C++ stdlib implementations which include<memory>inside of<thread>, but there's no reason for them to do that, so a newer version/different implementation causes this error.Have the same problem with build. Apply this fix assap please.
The same here! Fix please!