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):

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk