I would expect the following code to output hello5
. Instead, it only outputs hello
.
It seems to be a problem with trying to output an int to the
I just tested and it worked just fine on my Mac with Xcode 3.2.1 and Snow Leopard. It not that your prompt is shadowing the output? Try add an endl
to the cout line?
-- Edit --
c++ test.cpp
-- works finec++ -D_GLICXX_DEBUG=1 test.cpp
-- failc++ -arch i386 -D_GLICXX_DEBUG=1 test.cpp
-- works fineWhat can we say about this? In short, Debug version of 64 bit stdc++ seem to be broken.