|
Boost : |
From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2003-02-05 14:51:38
I'm reposting this, because I think, that this bug should be fixed, but
there wasn't any response to the first mail. I would try to fix it
myself, but the errors are so weird, that I'm not able to grasp, how to
do it :-)
Regards Hartmut
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Hartmut Kaiser
> Sent: Saturday, February 01, 2003 4:58 PM
> To: 'Boost mailing list'
> Subject: [boost] [regex] Linker errors with MSVC
>
>
>
> Hi all,
>
> I get a bunch of linker errors while compiling the following
> testcase with VC6.5/VC7.1 (current Boost CVS):
>
> test_regex.cpp:
>
> #include <string>
>
> #define BOOST_REGEX_NO_LIB
> #define BOOST_REGEX_STATIC_LINK
> #include "boost/regex.hpp"
> #include "boost/regex/src.cpp"
>
> int main()
> {
> boost::reg_expression<char> rxstr;
> char const *pteststr = "anyregexp";
>
> rxstr = std::string("anyregexp");
> boost::match_results<char const *> what;
> boost::regex_search(pteststr, &pteststr[9], what, rxstr,
> boost::match_default);
> return 0;
> }
>
> Command line: cl -I$(BOOST_ROOT) -GX test_regex.cpp
>
> Note: the regex library isn't given to the compiler!
>
> At least one other compiler (I tried ICL7.0) compiles and
> links this without any problems. Any clues?
>
> Regards Hartmut
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boo> st
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk