Looking at your post I see that you compiled your code as follows: "gcc testnewchar.cpp:
You should use g++ to compile c++ code. I was able to replicate your errors and eliminate them by using g++, which, accoriding to a post I saw yesterday on the gcc-help board, has been the preferred way to compile c++ code for a long time. Wayne Keen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/