cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Converting .cpp to windows compatible .e
Converting .cpp to windows compatible .exe
Nov 26, 2013 at 2:25am UTC
namesjj
(24)
I tried using g++ example.cpp -o example.exe which allows the compiled .exe to work on my linux system(Ubuntu), but when I try to execute on Windows it says it needs to be compatible between x32 and x64 bit machines. Any help out there?
Nov 26, 2013 at 12:12pm UTC
Chervil
(7320)
Did you recompile the cpp on the windows system?
Nov 26, 2013 at 7:38pm UTC
namesjj
(24)
No this is a simple program that I compiled with g++ on a linux server.
Nov 26, 2013 at 7:42pm UTC
Zhuge
(4664)
You need to recompile it on the Windows system, or find a cross-compiler that will run on your Linux system and produce a Windows executable.
Topic archived. No new replies allowed.