> Here's the error: > re.cpp: variable 'pcrecpp::no_arg' can't be auto-imported. Please read > the documentation for ld's --enable-auto-import for details.
I don't understand this. Does it have something to do with the fact that null_arg is an extern in re.dll which is has it allocation in prcecpp.dll? > (n>0?&s[0]:NULL_RE_ARG), > It does compile without warnings. I know you retracted &s[] but, as I > said, s[] doesn't compile (even on its own outside of the conditional > statement) because FullMacth is expecting "const pcrecpp::Arg&" and not > "std::string&" I got this wrong. If you look at the examples, he is passing a pointer to a string. I got confused by the fact that he uses an arg reference in the declaration. But the Arg reference somehow translates into the need for a pointer, through the magic of all the PARSER stuff used on the arg template in the .h file which I don't really understand. Hence it could work with th n>0?&s[0]:NULL_RE_ARG and NULL as the NULL_RE_ARG. If it compiles, try a test case. I think you may be right: it was not the NULL that was the problem, but the error on the s[]. (
