on-internet
← Community

How to compile C/C++ programs to a exe format

Stack Overflow ·

I'm using a mac OS X 10.8.4 64 bit. I want to build some C/C++ programs on my mac, and then show them to some people who use windows. I can successfully compile it into an exe, using g++ test.cpp -o test.exe on the terminal But when run in my PC, that exe file raises this error: "This verison of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) verion of the program." Note: My PC is also 64 bits

Comments

Sign in or sign up to comment and upvote.

No comments yet.