John Maddock wrote: > > 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 :-) > > Sorry I missed the first one: the problem is simple: the > header you are using (boost/regex/src.hpp) is undocumented > and deprecated, and doesn't include all the source files any > more (I'll get that fixed though). Add instances.cpp and > winstances.cpp to the list of source files included and it > should fix your problem.
I've added (after the #include "boost/regex/src.cpp"): #include "libs/regex/src/instances.cpp" #include "libs/regex/src/winstances.cpp" But this doesn't solve the unresolved externals linker errors (sorry :-) Regards Hartmut > > > > > > 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 > > > > > > > > > > > _______________________________________________ > > Unsubscribe & other changes: > http://lists.boost.org/mailman/listinfo.cgi/boost > > > > > _______________________________________________ > Unsubscribe & other changes: > http://lists.boost.org/mailman/listinfo.cgi/boo> st > _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost