Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2003-02-01 10:58:02

Hi all,

I get a bunch of linker errors while compiling the following testcase
with VC6.5/VC7.1 (current Boost CVS):


#include <string>

#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,
    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

Boost list run by bdawes at, gregod at, cpdaniel at, john at