run my program in Xcode?

Discussion in 'Mac Programming' started by gohome190, Sep 10, 2009.

  1. gohome190 macrumors regular

    gohome190

    Joined:
    Feb 18, 2007
    #1
    I am in a C++ class and I am using Xcode as my compiler. However, I am creating win32 applications. Is there no way for me to "test" the newly designed program?

    thanks
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    Are they graphical programs, or command-line programs?

    If they are graphical, and you're not using a cross-platform toolkit for the UI, you'll need to write your programs on windows. If they are command-line, you'll have to recompile, but you should be fine writing and testing them on OS X. You will definitely want to test again on Windows to make sure things behave the same.

    You will not be able to compile a windows binary on OS X. You'll need to take your code to a windows machine with a compiler (i.e. gcc via cygwin, MSVC++, etc.) and build your binary there.

    -Lee
     

Share This Page