frank wrote:I am on Ubuntu 10.04 in a VM (If its the VM screwing with stuff, then I'll try again soon as I fix my hard Ubuntu installation)
The VM has nothing to do. Your Ubuntu is old, and if you didn't update GCC, you're using an old GCC as well, so it's normal you don't get the same output.
I see you've posted x/w $1 twice, but you didn't show what you did between one and the other. If you did nothing, well obviously the output is the same and it's correct.