The following program leads to a segmentation fault in RedHat 6.0. This used to work in release 5.2. #include <iostream.h> #include <strstream.h> #include <stdio.h> const char* input = "1: The quick brown foxes jumped over the lazy dog.\n" "2: The quick brown foxes jumped over the lazy dog.\n" "3: The quick brown foxes jumped over the lazy dog.\n" "4: The quick brown foxes jumped over the lazy dog.\n" "5: The quick brown foxes jumped over the lazy dog.\n" "6: The quick brown foxes jumped over the lazy dog.\n" "7: The quick brown foxes jumped over the lazy dog.\n" "8: The quick brown foxes jumped over the lazy dog.\n"; int main () { istrstream istr (input); int c; while ((c = istr.get ()) != EOF) { cout << (char) c; } return 0; } Urs von Matt Ise Inc. vonmatt
Works fine for me in both 6.0 and 6.1. Make sure you aren't trying to link against an incompatible libg++.