jeudi 1 juillet 2021

why this opendds messenger link error when i use c++11

background: OS: Centos7.9 x64 compiler: g++4.8.5 OpenDDS-3.14( configure --std=c++11)

I want to compile the OpenDDS-3.14/ tests/cmake_integration/Messenger/Messenger_1,i add one line " set(CMAKE_CXX_STANDARD 11)" to the CMakeLists.txt, then i cmake . and make, but it link error, some undefined reference occours,if i do not add set(CMAKE_CXX_STANDARD 11),it is ok. how to solve this problem? thank you.

Aucun commentaire:

Enregistrer un commentaire