>I was set up on Netbeans using MinGW's GCC compiler version 4.6.2, and my friend was using DevC++ which uses MinGW's GCC version 3.4.2.

This appears to be your problem. Look at the disparity there - you're using a 4.6.x build of the recent GCC compiler w/ NetBeans (another fairly recent IDE) while your "friend" or whatever is using the heavily deprecated DevC++ IDE and an outdated GCC 3.4.x.

Just get on the same page. DevC++ sucks. He/she should be using the same or another modern C++ IDE for debugging code. Use the same compiler version because you always want to do that anyway when collaborating with others unless there's some ulterior reason for doing so otherwise.