Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several compilation/runtime errors #78

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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