Boost logo

Boost Users :

From: Javier-Elias Vasquez-Vivas (javier.e.vasquez.vivas_at_[hidden])
Date: 2005-03-05 12:18:13


Hi all,

I'm new at using boost.  I was able to compile it and install it with "--prefix".  The reason to use "--prefix" is not having root access...  I used the following bjam command to compile:

bjam --prefix=$PATH1 install

Then I got under $PATH1 the following stuff:

$PATH1/lib/<all_boost_libraries>
$PATH1/include/boost-1_32/boost/<all_boost_libraries_headers>   (including regex.hpp and its sub-directory)

So I copied credit_card_example.cpp in $PATH2 and tried to compile it as follows:

g++ -I$PATH1/include/boost-1_32 -L$PATH1/lib
credit_card_example.cpp

After this I got a bunch of error messages I'm attaching inside file regex_cmp_failure.log...  In the 1st lines we notice:

       1 /netbatch/ccwCZTMX.o: In function `boost::basic_regex<char, boost::regex_traits<char>, std::allocator<char> >::basi
       1 c_regex[in-charge](char const*, unsigned, std::allocator<char> const&)':
       2 /netbatch/ccwCZTMX.o(.gnu.linkonce.t._ZN5boost11basic_regexIcNS_12regex_traitsIcEESaIcEEC1EPKcjRKS3_+0x22): undefin
       2 ed reference to `boost::reg_expression<char, boost::regex_traits<char>, std::allocator<char> >::reg_expression[not-
       2 in-charge](char const*, unsigned, std::allocator<char> const&)'

And in the last lines:

      59 /netbatch/ccwCZTMX.o(.gnu.linkonce.t._ZN5boost11basic_regexIcNS_12regex_traitsIcEESaIcEED1Ev+0xd): undefined refere
      59 nce to `boost::reg_expression<char, boost::regex_traits<char>, std::allocator<char> >::~reg_expression [not-in-char
      59 ge]()'
      60 collect2: ld returned 1 exit status

I'm not familiar with boost, but it looks like this is a header or a library problem...  Notice /netbatch is just working as /tmp.

I also tried modifying credit_card_example.cpp including the config.hpp header, but the result was the same...

Is any one aware of what I might be doing wrong, so that can indicate how to do things right?  Please reply including my e-mail (javier.e.vasquez.vivas@intel.com) so that I can grab any answers...

Thanks,

Javier.


-------- Original Message --------
Subject: Failure output from compilation...
Date: Sat, 5 Mar 2005 10:38:36 -0600 (CST)
From: Javier Vasquez vivas - BMD ~ <jevasque@pcocd2.intel.com>
To: javier.e.vasquez.vivas@intel.com


Javier-Elias Vasquez-Vivas



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net