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

Compiler conflict #2

Open
rakeshshrestha31 opened this issue Jan 9, 2018 · 0 comments
Open

Compiler conflict #2

rakeshshrestha31 opened this issue Jan 9, 2018 · 0 comments

Comments

@rakeshshrestha31
Copy link

The Airsim library is written for clang with libc++. Trying to use the library with the ROS project as it is with the default compiler gives errors like

AirSim/AirLib/include/common/VectorMath.hpp:236:22: error: ‘asinf’ is not a member of ‘std’
AirSim/AirLib/include/common/VectorMath.hpp:241:20: error: ‘atan2f’ is not a member of ‘std’

Changing the compiler of the ROS project to clang/libc++ gives errors like

publishAirsimImgs/src/imgPublisher.cpp:(.text+0x369): undefined reference to `ros::param::get(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double&)'

These errors are probably because ROS hasn't been built using clang; and g++ and clang aren't compatible.

Did you get these errors by any chance?

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

1 participant