|
Boost Users : |
From: John Maddock (john_maddock_at_[hidden])
Date: 2002-03-31 06:01:23
> I was experiencing a similar problem with C++Builder 5.
> I got the linker error "Unable to open file 'BCB5RE300L.LIB'"
Which means that either the expected lib isn't in your lib search path or
doesn't exist.
> When I try solution #1, I get a different error:
> "Unresolved external
> boost::w32_regex_traits<char>::~w32_regex_traits<char>{}'"
>
> Is there a simple solution? Or should I just try building using the
> makefiles?
>
> Here is the program I try to compile:
I presume that you manually added the jam produced lib file to your project?
Also make sure that you pick the right lib file or the program will crash at
runtime!! One good reason to use the supplied makefiles.
> #define BOOST_REGEX_NO_LIB
> #include <boost/regex.hpp>
> bool validate_card_format(const std::string s) {
> static const boost::regex e("(\\d{4}[- ]){3}\\d{4}");
> return regex_match(s, e);
> }
> int main(int argc, char* argv[]) {
> return 0;
> }
>
>
>
> --- In Boost-Users_at_y..., "John Maddock" <john_maddock_at_c...> wrote:
> > The regex lib isn't set up to link against the jam generated libs
> (they all
> > have the same name currently which doesn't help), you can either:
> >
> > 1) Define BOOST_REGEX_NO_LIB so that it doesn't try to link against
> the lib
> > names it expects.
> > or
> > 2) Build the regex lib using the supplied makefiles - automatic
> linking will
> > work just fine then.
> >
> <snip>
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