Boost Users :
Subject: Re: [Boost-users] [regex] problem with linking to boost_regex
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-10 14:10:35
John Maddock wrote:
>> this is the first time iam using boost::regex.
>> when i compile the program, it lists a lot of 'undefined reference
>> to' s to
>> regex functions.
>> tried setting linked flag -llibboost_regex-gcc43-mt and
>> -L/usr/local/lib in
>> eclipse but no use.
> We would need to see the actual command lines and the error messages
> to help, but one quick check is that the -llibboost_regex-gcc43-mt
> flag must come *after* the object files that use on the linker command
In addition , I believe that the correct option is
-lboost_regex-gcc43-mt, since gcc will add the
lib prefix automatically.
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