Boost Users :
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:
> 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++
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net