Different Code (example.cpp) #include <boost/lexical_cast.hpp> #include <iostream> using namespace::std; int main() { unsigned int x = 3; string s = boost::lexical_cast<string>(x); return 0; } Works $ g++ -Wall -g -I~/Development/BOOST/boost_1_44_0 example.cpp -o example Doesn't Work: including boost regex library $ g++ -Wall -g -I~/Development/BOOST/boost_1_44_0 ~/Development/BOOST/BOOST_INSTALL/lib/libboost_regex.a example.cpp -o example Seems to be a bug: https://svn.boost.org/trac/boost/ticket/4595 https://svn.boost.org/trac/boost/ticket/4595 Is this bug related to my previous question about using boost regex? Thanks -- View this message in context: http://boost.2283326.n4.nabble.com/boost-regex-no-debug-info-and-std-bad-cas... Sent from the Boost - Users mailing list archive at Nabble.com.