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/boost

Reply via email to