8 Dec
2013
8 Dec
'13
11:29 a.m.
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++)