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?