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

Eigen Wiki Question #30

Open
Levi-Armstrong opened this issue Jan 23, 2020 · 2 comments
Open

Eigen Wiki Question #30

Levi-Armstrong opened this issue Jan 23, 2020 · 2 comments

Comments

@Levi-Armstrong
Copy link

Hello,

Your wiki on Eigen was very informative, but I have question you may be able to answer. It states that you must not link against libraries that were built using Eigen with different alignment optimization flags. For a system library how can you tell what flags were used? Also a lot of ROS package use Eigen do they all get build with the same alignment optimization flags on the ROS Build Farm?

@HannesSommer
Copy link
Contributor

That is a good question.
I doubt there is a generic way to detect the build flags a given lib was build with. This is basically a fundamental problem with c++.
However, I would assume that most ROS packages that get built on the ROS build farm use the target's default config as determined by the compiler (see g++ -Q --help=target).

As long as you do the same you should be safe :).
If you must do differently you can compare with the output of the above command and reason about which other flags would lead to a compatible alignment.

@Levi-Armstrong
Copy link
Author

Thank you, this is very helpful.

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

No branches or pull requests

2 participants