Skip to content

Conversation

charlescochran
Copy link

No description provided.

Note: using gcc version 11.4.0
This caused a compilation error.

Note: using gcc version 11.4.0
In C++, declaring a return value but not returning anything is
unspecified behavior. Several functions/methods in this library are
doing this, and in my case, it's causing a nasty SEGV to occur in
unrelated Eigen code (probably because the program counter is falling of
the end of the function and executing the unrelated Eigen code that
happens to be below!). This is bad, so let's actually return (unused)
values from these functions.

Note: using gcc version 11.4.0
Currently, the project's CMakeLists.txt specified C++11, which is
causing a PCL compilation error. Using C++14 instead causes a SEGV due
to Eigen alignment issues (see
https://eigen.tuxfamily.org/dox/group__DenseMatrixManipulation__Alignement.html).

Upgrading to C++17 fixes these and allows the library to compile and run
without segfaulting.

Note: using gcc version 11.4.0
@charlescochran charlescochran mentioned this pull request May 28, 2024
@charlescochran
Copy link
Author

@Livox-SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant