Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-07-16 07:52:04


Chandan Nilange wrote:
> Hello John,
>
> I find following *.a *.so but no libboost_regex.so
> at path :/home/ChandanNilange/work/boost/lib
>
> libboost_regex-gcc34-1_34.a
> libboost_regex-gcc34-1_34.so
> libboost_regex-gcc34-1_34.so.1.34.0
> libboost_regex-gcc34.a
> libboost_regex-gcc34-d-1_34.a
> libboost_regex-gcc34-d-1_34.so
> libboost_regex-gcc34-d-1_34.so.1.34.0
> libboost_regex-gcc34-d.a
> libboost_regex-gcc34-d.so
> libboost_regex-gcc34-mt-1_34.a
> libboost_regex-gcc34-mt-1_34.so
> libboost_regex-gcc34-mt-1_34.so.1.34.0
> libboost_regex-gcc34-mt.a
> libboost_regex-gcc34-mt-d-1_34.a
> libboost_regex-gcc34-mt-d-1_34.so
> libboost_regex-gcc34-mt-d-1_34.so.1.34.0
> libboost_regex-gcc34-mt-d.a
> libboost_regex-gcc34-mt-d.so
> libboost_regex-gcc34-mt.so
> libboost_regex-gcc34.so
>
> Also, I tried with all above *.a by stripping "lib" &
> .* from their name. However I can get messages like
>
> /usr/include/boost/regex/v4/basic_regex.hpp:338:
> undefined reference to `boost::reg_expression<char,
> boost::regex_traits<char>, std::allocator<char>
>>>> reg_expression(std::allocator<char> const&)'
>
> Do you think I have made some mistake during build.
> Following were the steps followed

Ah, if I remember correctly you only get a "libboost_regex.*" if you invoke
bjam with --layout-system: this is primarily intended for system
integrators. I've no idea why you got linker errors from the above
binaries, you should be able to use -lboost_regex-gcc34 as a linker option
and have it just work.

John.


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