.. code-block:: cmake
- cmake_minimum_required(VERSION 2.8.8)
+ cmake_minimum_required(VERSION 2.8.12)
project(MyFirstSimulator)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
.. code-block:: console
masterworker.c:209: undefined reference to `sg_version_check'
- masterworker.c:209: undefined reference to `MSG_init_nocheck'
(and many other undefined references)
This happens when the linker tries to use the wrong library. Use