C++ Windows compatibility?

Joined
Oct 16, 2009
Messages
18
Reaction score
0
Points
1
I have written an encryption program in c++ and compiled with xcode. The program does not use any UNIX specific headers or anything. How can I make it run on a 64 bit Windows machine without recompiling on that computer?
 
Joined
Dec 9, 2008
Messages
19
Reaction score
0
Points
1
As long as you havent used any platform specific librarys you should be okay to run it on both operating systems. you will most likley need to compile it for windows though.

You can use GCC with cygwin or something like nmake which comes with visual studio.
 
Joined
May 10, 2010
Messages
10
Reaction score
1
Points
3
The short answer is you can't. You MUST recompile it for the target OS.

In theory though you can recompile it using GCC as a Windows executable but I've never tried it.

Check this out:

nyctergatis - Cross-GCC
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top