The problem is that he changed the object file to an .exe they are different
a .o (object) is unlinked machine code and an .exe(executable) is linked machine code. You would have to link the .o then convert to an .exe if you want to run it that way AFAIK.
The more advanced users might have more info though.
thank you giblit. you are on to something. can you create an exe directly from netbeans? I can run the main.o and/or a.out when using g++ at command prompt just fine from command prompt but i am wanting to create a program that i can have another person use without flaw in windows.