Mon Oct 14 04:51:00 GMT 2002
>> Declaring char a gives me segmentation fault with g++ (on
RedHat 7.1). Any suggestions?
Your stack isn't big enough. Make your stack larger when you compile/run
Alternatively, declare your char a variable on the heap via
"char* a = new char;", remember to manage the memory with a
"delete a". Better yet, use a "vector<char> a(15000000, '\0');", which
will manage the memory for you.
More information about the Gcc-help