Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-01-14 00:51:00


Greg Buchholz wrote:
>> /tmp/ccagNJn9.o(.gnu.linkonce.t._ZN5boost11regex_matchIN9__gnu_cxx17__
>> : undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__
>> collect2: ld returned 1 exit status
>
> ...etc. So it looks like it can't find the libraries to link against.
> But my /usr/local/lib directory has all sorts of libboost* files,
> including libboost_regex-gcc.so and friends. I've tried a number of
> other g++ options including "-lboost", "-llibboost", "-llibboost_regex",
> and "-llibboost_regex-gcc". Any hints on what I might try to get things
> up and running? My system is Slackware Linux 9.1 and gcc 3.4.2.

Try adding "-lboost_regex-gcc", the "lib" prefix is added for you by the
linker.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

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