|
Boost-Build : |
Subject: [Boost-build] Linking to Boost Libraries: Undefined Reference to std::__throw_out_of_range_fmt(char const*, ...)
From: Steven Asselanis (tiki2007_at_[hidden])
Date: 2014-07-24 16:50:51
The Problem
Whenever I try to link to libboost_filesystem.a, I get the error:
boost_1_55_0/stage /lib/libboost_filesystem.a(path.o): In function `boost::filesystem::path::remove_filename()': path.cpp:
(.text+0x5fd): undefined reference to `std::__throw_out_of_range_fmt(char const *, ...)'
The Context
This error occurs when I use GCC 4.9.0 to link my compiled code to the boost library. I have built boost with the 4.9
compiler by running `./b2 toolset=gcc-4.9 variant=release threading=multi stage`. The process finishes without encountering any errors.
If I use an older version of GCC, (version 4.6.3) to compile my code and link to the same boost library (also built with v4.6.3), I do not encounter this issue.
I have been scouring the internet to try to get a better understanding of the cause of this issue, but I have only come across a few posts. What can I do to fix this issue?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk