$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Problem with linking files using boost::log with CMake Buildfile
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-12-08 06:29:51
On 12/07/2013 08:40 PM, David Georg Reichelt wrote:
> CMakeFiles\Hasselbrack.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x285):
> undefined reference to `std::ios_base::Init::~Init()'
This indicates that you use the C compiler to link a C++ program.
In your CMakeLists.txt you explicitly set CMAKE_CXX_COMPILER to gcc,
not to g++. In fact, I would not set the compiler variables explicitly
as they are auto-detected.
It may also be a good idea to tell CMake that you are working on a C++
project:
project(TV6 C++)