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 Compatibility issues #30

Open
ssingh130 opened this issue Oct 12, 2018 · 0 comments
Open

Compiler Compatibility issues #30

ssingh130 opened this issue Oct 12, 2018 · 0 comments

Comments

@ssingh130
Copy link

[ 96%] Built target ardronelib
[ 96%] Building CXX object ardrone_testbed/ardrone_autonomy/CMakeFiles/ardrone_driver.dir/src/teleop_twist.cpp.o
[ 96%] Building CXX object ardrone_testbed/ardrone_autonomy/CMakeFiles/ardrone_driver.dir/src/video.cpp.o
[ 97%] Building CXX object ardrone_testbed/ardrone_autonomy/CMakeFiles/ardrone_driver.dir/src/ardrone_sdk.cpp.o
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/string:40,
from /opt/ros/melodic/include/ros/platform.h:55,
from /opt/ros/melodic/include/ros/time.h:53,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_driver.h:31,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_sdk.h:70,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/src/ardrone_sdk.cpp:25:
/usr/include/c++/7/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/7/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/string:40,
from /opt/ros/melodic/include/ros/platform.h:55,
from /opt/ros/melodic/include/ros/time.h:53,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_driver.h:31,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_sdk.h:70,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/video.h:28,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/src/video.cpp:25:
/usr/include/c++/7/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/7/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/string:40,
from /opt/ros/melodic/include/ros/platform.h:55,
from /opt/ros/melodic/include/ros/time.h:53,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_driver.h:31,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_sdk.h:70,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/teleop_twist.h:28,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/src/teleop_twist.cpp:26:
/usr/include/c++/7/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/7/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from /usr/include/c++/7/bits/stl_algo.h:60:0,
from /usr/include/c++/7/algorithm:62,
from /usr/include/boost/math/tools/config.hpp:18,
from /usr/include/boost/math/special_functions/round.hpp:13,
from /opt/ros/melodic/include/ros/time.h:58,
from /opt/ros/melodic/include/ros/ros.h:38,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_driver.h:31,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/include/ardrone_autonomy/ardrone_sdk.h:70,
from /home/somesh7/ardrone_ws/src/ardrone_testbed/ardrone_autonomy/src/ardrone_sdk.cpp:25:
/usr/include/c++/7/bits/algorithmfwd.h:375:41: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp&, const _Tp&, _Compare);
^
/usr/include/c++/7/bits/algorithmfwd.h:388:41: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp&, const _Tp&, _Compare);
^
/usr/include/c++/7/bits/algorithmfwd.h:416:30: error: macro "min" requires 2 arguments, but only 1 given
min(initializer_list<_Tp>);
^
/usr/include/c++/7/bits/algorithmfwd.h:426:30: error: macro "max" requires 2 arguments, but only 1 given
max(initializer_list<_Tp>);
^

I get this error every time i try catkin make
i am running Ubuntu 18.04LTS with Ros Melodic
I think this is related to some compiler incompatibilities, can u specify what version of gcc works best for compiling or invoking catkin_make
thank you
@AndreaCensi @marcco @datahaki @claudioglasses @frazzoli

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