14.08.2015, 23:04
Hi, how should I set C++ to version 11? I tried adding
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
or
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
but in both cases the Load function is not called resulting in plugin not being initialized and crashing.
Compiling on Ubuntu by:
cmake CMakeLists.txt -DCMAKE_CXX_COMPILER=g++
make
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
or
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
but in both cases the Load function is not called resulting in plugin not being initialized and crashing.
Compiling on Ubuntu by:
cmake CMakeLists.txt -DCMAKE_CXX_COMPILER=g++
make