
David Yon wrote:
So given the dearth of discussion on this category of problem, I'm guessing that perhaps this is a problem with gcc 4.x? Are there any known issues with boost.regex on gcc 4.0.x? Are they fixed in 4.1? Should I just fall back to Fedora Core 3 to get gcc 3.x?
David, I've not seen or heard of anything like that before, the first thing to check is that the regex tests work OK, cd into libs/regex/test and bjam regex_regress Assuming gcc-4 is your default compiler then that will build the main regression test program *with static linking*. If that works OK, then I bet there's some lind of binary incompatibity between the lib variant that you're using and your program: try adding the regex source direct to your program's build process and see if that works, if it does I would suggest building the regex source into a static lib yourself using whatever compiler options you're using. However... I note that your program is calling exit explicity, there's just an outside chance that there's some kind of bug either in the regex lib initialisation/cleanup routines or in gcc-4.x. Or... maybe your program is accessing the regex lib during it's cleanup routines, and finding that regex has already destroyed it's globals? Those are just wildcard suggestions frankly. HTH, John.