Cross-compile C/C++ programs on macOS for Windows?
I'm using a macOS 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 But when run in my PC, that exe file raises this error: This version 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) version of the program. Note: My PC is also 64 bits
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.