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

mac ros build class_loader issue #162

Open
sansherlock opened this issue Aug 4, 2020 · 2 comments
Open

mac ros build class_loader issue #162

sansherlock opened this issue Aug 4, 2020 · 2 comments

Comments

@sansherlock
Copy link

-- Generating done -- Build files have been written to: /Users/liu/ros_catkin_ws/build_isolated/class_loader ==> make -j8 -l8 in '/Users/liu/ros_catkin_ws/build_isolated/class_loader' Scanning dependencies of target class_loader [ 60%] Building CXX object CMakeFiles/class_loader.dir/src/meta_object.cpp.o [ 60%] Building CXX object CMakeFiles/class_loader.dir/src/class_loader.cpp.o [ 60%] Building CXX object CMakeFiles/class_loader.dir/src/class_loader_core.cpp.o [ 80%] Building CXX object CMakeFiles/class_loader.dir/src/multi_library_class_loader.cpp.o In file included from /Users/liu/ros_catkin_ws/src/class_loader/src/class_loader_core.cpp:30: In file included from /Users/liu/ros_catkin_ws/src/class_loader/include/class_loader/class_loader_core.hpp:43: In file included from /usr/local/include/Poco/SharedLibrary.h:29: In file included from /usr/local/include/Poco/SharedLibrary_UNIX.h:22: In file included from /usr/local/include/Poco/Mutex.h:22: /usr/local/include/Poco/Exception.h:46:2: error: exception specification of overriding function is more lax than base version ~Exception() noexcept; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:101:13: note: overridden virtual function is here virtual ~exception() _NOEXCEPT; ^ In file included from /Users/liu/ros_catkin_ws/src/class_loader/src/class_loader_core.cpp:30: In file included from /Users/liu/ros_catkin_ws/src/class_loader/include/class_loader/class_loader_core.hpp:43: In file included from /usr/local/include/Poco/SharedLibrary.h:29: In file included from /usr/local/include/Poco/SharedLibrary_UNIX.h:22: In file included from /usr/local/include/Poco/Mutex.h:22: /usr/local/include/Poco/Exception.h:46:14: error: expected ';' at end of declaration list ~Exception() noexcept; ^ /usr/local/include/Poco/Exception.h:52:34: error: expected ';' at end of declaration list virtual const char* name() const noexcept; ^ /usr/local/include/Poco/Exception.h:55:39: error: expected ';' at end of declaration list virtual const char* className() const noexcept; ^

@sansherlock
Copy link
Author

error seems like gcc do not know what is "noexcept".

@daohu527
Copy link

what is your clang version, mac use clang to compile c++ and support c++11 can solve this problem

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