Use ‘-faligned-new’ to enable C++17 over-aligned new support

Dear Support,
Error note from catkin build which terminates the build:

use ‘-faligned-new’ to enable C++17 over-aligned new support

Any thoughts on a good way to enable?

Thanks
-R

  1. added to CMakeLists.txt:
    set(CMAKE_CXX_FLAGS “-std=c++17”)

not quite it…

add_definitions(-std=c++17)

did the trick

1 Like