﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5948	Cpp runtime fails to link a model under Ubuntu 20.04 LTS (Focal Fossa)	Rüdiger Franke	Andreas Heuermann	"Compiled OpenModelica according to docu:
{{{
echo deb http://build.openmodelica.org/apt bionic nightly | sudo tee -a /etc/apt/sources.list
echo deb-src http://build.openmodelica.org/apt bionic nightly | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep openmodelica
git clone --recursive https://openmodelica.org/git-readonly/OpenModelica.git OpenModelica
cd OpenModelica
autoconf
./configure --with-cppruntime
make -j16
}}}

Afterwards attempted to simulate the MSL ThreeTanks example in OMEdit using the Cpp runtime. This gives:
{{{
make -j16 -f Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile
g++ -fopenmp  -Winvalid-pch -O0 -g -DNDEBUG -fPIC   -std=c++11 -DBOOST_ALL_DYN_LINK   -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_PUGI_XML -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I""."" -I""/home/franke/OpenModelica/build/bin/../include/omc/cpp/"" -I.  -I""."" -I""."" -I""/home/franke/OpenModelica/build/include/omc/c/sundials""     -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER  -c -o OMCppModelica.Fluid.Examples.Tanks.ThreeTanksCalcHelperMain.o OMCppModelica.Fluid.Examples.Tanks.ThreeTanksCalcHelperMain.cpp
g++ -fopenmp -shared -o OMCppModelica.Fluid.Examples.Tanks.ThreeTanks.so OMCppModelica.Fluid.Examples.Tanks.ThreeTanksCalcHelperMain.o -L""/home/franke/OpenModelica/build/lib/omlibrary/Modelica 3.2.3/Fluid/Examples""   -lOMCppSystem -lOMCppModelicaUtilities -lOMCppDataExchange -lOMCppMath -lOMCppExtensionUtilities -lOMCppOMCFactory -L""/home/franke/OpenModelica/build/bin/../lib/x86_64-linux-gnu/omc/cpp""    -Wl,-rpath,""/home/franke/OpenModelica/build/bin/../lib/x86_64-linux-gnu/omc/cpp""  -L""."" -lBoost::filesystem -lBoost::system -lBoost::serialization -lBoost::program_options -ldl -L/usr/lib/x86_64-linux-gnu -llapack -lblas 
/usr/bin/ld: cannot find -lBoost::filesystem
/usr/bin/ld: cannot find -lBoost::system
/usr/bin/ld: cannot find -lBoost::serialization
/usr/bin/ld: cannot find -lBoost::program_options
collect2: error: ld returned 1 exit status
make: *** [Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile:77: Modelica.Fluid.Examples.Tanks.ThreeTanks] Error 1
Compilation process failed. Exited with code 2.
}}}

The linker flags appear wrong. I think that same happens for the maintentance/v1.15 branch.
Debian Jessie uses different linker flags, like `-lboost_filesystem`."	defect	closed	blocker	1.14.2	Build Environment		fixed		Niklas Worschech
