Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kirbyrock

macrumors newbie
Original poster
Dec 11, 2011
2
0
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?
 
Last edited:

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.