Boost logo

Boost :

From: e_macdon_at_[hidden]
Date: 2001-08-04 19:44:45

hello all!

last night i downloaded the boost libraries. i ran into some problems
and spent the rest of the night reading through this group hoping to
find some answers... i found some similar problems, but they weren't
the same, and i'm afraid that i didn't really understand the
solutions (i'm a beginner/intermediate c++ programmer)...

my problem is this:

i am currently using gcc 3.0. As far as i know, it is the most
current stable release (i.e. not beta). i installed the regex
library. i created a simple test file that included the library and
it worked okay (so it would appear that the compiler is having no
trouble linking anything). however, as soon as i try to create
objects from the library, i get errors.

below, i have the output of gcc -v, the commands i used to build the
executable, and the first three errors output by the compiler. the
code i compiled that gave me the erros was the "ftp based regex_match
example" that came with the distribution. more detailed information
(including source) can be seen at
this message is already long enough and i dind't want to pollute the
list with a ton of text. if it would be more helpful for me to post
the complete errors, let me know (they are lengthy). the web site is
hosted from my house, so if the page doesn't come up, it's probably
because my dsl is down (my provider is less than perfect)..

Ed MacDonald

the info:

//GCC version information
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /home/emacdona/downloads/gcc3/gcc-3.0/configure
Thread model: single
gcc version 3.0

//Commands used to compile source (the output of my Makefile)
Creating regex_match_example.cpp obj (.o) file
g++ -I/usr/lib/boost_1_23_0 -c regex_match_example.cpp

Linking regex_match_example.o ...
g++ \
-o reTEST

//first three errors:
regex_match_example.o: In function `char const*
boost::re_detail::re_is_set_member<char const*, char,
boost::regex_traits<char>, boost::re_detail::jm_def_alloc>(char
const*, char const*, boost::re_detail::re_set_long*,
boost::reg_expression<char, boost::regex_traits<char>,
boost::re_detail::jm_def_alloc> const&)':
xpressionIT0_T1_T2_EE+0x29c): undefined reference to
`boost::c_regex_traits<char>::transform(std::string&, std::string
xpressionIT0_T1_T2_EE+0x3b9): undefined reference to
std::string const&)'

Boost list run by bdawes at, gregod at, cpdaniel at, john at