Sorry if this belongs in the newbies forum and the moderator should feel free to move it there if needed. No hard feelings either way.
I wrote a simple practice application in Debian 7.7 and compiled it using g++ 4.7.2. I made sure the executable had an .exe extension. The application compiled with no errors and executed in Debian with no semantic errors, but would not execute at all in Windows 7. So I guess I've discovered that I need to compile it in a special way in order to have it execute in both Linux and Windows. What is that special way?