New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

C++ Windows compatibility?

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 16, 2009
Posts: 18
O'Brien is on a distinguished road

O'Brien is offline
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?
QUOTE Thanks

Member Since: Dec 09, 2008
Posts: 19
systix is on a distinguished road

systix is offline
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.
QUOTE Thanks

Member Since: May 10, 2010
Posts: 10
Kludge is on a distinguished road

Kludge is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe

« Need help with Xcode | why classes and objects are similar in objective c »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Calling all Windows Power Users consultant Switcher Hangout 6 08-20-2012 04:27 PM
Data Partition: Using a FAT32 Partition to exchange data between Mac and Windows XP MartinT Running Windows (or anything else) on your Mac 9 11-12-2009 02:56 AM
Question about Bootcamp Melorock089 Switcher Hangout 12 06-29-2009 07:53 PM
Have to be SP2? joe.morgan Running Windows (or anything else) on your Mac 5 01-12-2007 10:11 PM
Windows Tweaks and Security PowerBookG4 Running Windows (or anything else) on your Mac 5 07-07-2006 12:31 AM

All times are GMT -4. The time now is 10:10 PM.

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

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?