Exporting code in xcode (newbie question)?

Discussion in 'Mac Programming' started by kirbyrock, Dec 11, 2011.

  1. kirbyrock, Dec 11, 2011
    Last edited: Dec 11, 2011

    macrumors newbie

    Joined:
    Dec 11, 2011
    Messages:
    2
    #1
    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?
     
  2. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Messages:
    1,448
    Location:
    Sydney
    #2
    Which version of XCode do you have? The answer is different for XCode 3 verses XCode 4.
     
  3. macrumors newbie

    Joined:
    Dec 11, 2011
    Messages:
    2
    #3
    I have xCode4.
     
  4. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Messages:
    1,448
    Location:
    Sydney
    #4
    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.
     

Share This Page