Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   C++ Windows compatibility? (

O'Brien 04-22-2010 11:43 PM

C++ Windows compatibility?
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?

systix 04-24-2010 01:21 PM

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.

Kludge 05-11-2010 06:28 PM

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

All times are GMT -4. The time now is 01:22 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.