[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    [Boost-build] Linking to Boost Libraries: Undefined Reference to std::__throw_out_of_range_fmt(char 
From:       Steven Asselanis <tiki2007 () msn ! com>
Date:       2014-07-24 20:50:51
Message-ID: SNT150-W677494D67B1A2A74776E70DFFF0 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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?  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><u>The Problem</u><br>Whenever I try to link \
to libboost_filesystem.a, I get the error: <br>boost_1_55_0/stage \
/lib/libboost_filesystem.a(path.o): In function \
`boost::filesystem::path::remove_filename()': path.cpp:<br>(.text+0x5fd): undefined \
reference to `std::__throw_out_of_range_fmt(char const *, ...)'<br><br><u>The \
Context</u><br>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<br>compiler by running `./b2 \
toolset=gcc-4.9 variant=release threading=multi stage`. The process finishes without \
encountering any errors. <br><br>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.<br><br>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?<br> 		 	   		  </div></body> </html>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic