Hi,
Im experiencing a strange problem, I was developping on linux using g++ and I couldnt believe there was an error in my code. I then compiled my program with VC++ and there is no problem pffff.
Here is my code:
Assuming that "line" is a std::string, you don't do any evil things with #defines and everything here is the stuff from namespace std, then it should work in GCC.
Can you post the whole code for GCC that give the segfault?