Hi,
This is somewhat off-topic, but I'd be interested in hearing from
anyone who has successfully built egcs1.0.3 (or 1.0.2) with
libg++2.8.1 (I wanted that for String.h and Regex.h). egcs1.0.3 alone
builds fine and runs fine (so far anyway), but I think I must be doing
something wrong when I try to build it with libg++ as I'm still unable
to use Regex (which works fine with g++2.7.2/libg++).
To build I simply unpacked libg++2.8.1 in the egcs source directory,
and ran src_dir/configure --prefix=/usr/local/egcs in the build
directory. That is, no mods. save for changing the default install
directory. It seemed to build cleanly (no errors). Does something else
need to be configured differently to build with libg++?
Alternatively, is there any reason not to just use libg++ from 2.7.2?
Thanks in advance.
peace, Marc
Platform: Red Hat 5.0, P166MMX, 64MB RAM; gcc2.7.2, glibc2.0.7-13
Test program:
#include <iostream>
#include <String.h>
int main()
{
String input;
Regex match_this("\\.[a-f]+[0-9]+A$");
while (input != "quit") {
cin >> input;
String actual_input = input.from(match_this);
if (actual_input != '\0') {
cout << "Matched " << actual_input << endl;
}
}
return 0;
}