PDA

View Full Version : Exporting code in xcode (newbie question)?




kirbyrock
Dec 11, 2011, 06:21 PM
So, I've written a short, simple c++ code (its just a simple tic tac toe game). I was just wondering if there's a way to somehow export the code I've written from xcode, so that I would be able to say, send the file to someone who can then run it in their own terminal to play the game?

Thanks for any help!


EDIT: I guess the root of what I'm asking is how to create an executable file from xcode that I could send to a friend. Also, would this file work on both windows and mac?



jiminaus
Dec 12, 2011, 12:20 AM
Which version of XCode do you have? The answer is different for XCode 3 verses XCode 4.

kirbyrock
Dec 13, 2011, 02:07 AM
Which version of XCode do you have? The answer is different for XCode 3 verses XCode 4.
I have xCode4.

jiminaus
Dec 13, 2011, 05:02 AM
Check out this post.

Also you cannot create Windows executable using XCode. Compile using the free Visual C++ Express on Windows to get a Windows executable.