Doing C++ coding on a Mac?

Discussion in 'Mac Programming' started by illjazz, Sep 2, 2010.

  1. illjazz macrumors regular

    Apr 18, 2008
    I didn't know where else to put this question.. so, short of installing Bootcamp and Windows so I can run VisualStudio, (which I really don't want to do JUST FOR THIS), what options do I have of writing and running C++ code on Snow Leopard?

    I'm taking a Data Structures college class that uses C++, which is why I'm not too fond of the idea of installing Bootcamp and all that jazz just for this.

    Thanks in advance!
  2. mrbash macrumors 6502

    Aug 10, 2008
    You would first install the developer tools. The developer tools get installed when you install XCode. XCode is Apple's equivalent to Visual Studio.
  3. illjazz thread starter macrumors regular

    Apr 18, 2008
    Didn't know that! Thanks.. so if I have a file created on Windows with VisualStudio, can I open it right up with Xcode or do I have to make a new project in Xcode and just paste the code?

  4. Hansr macrumors 6502a

    Apr 1, 2007
    You can't open the VS project file in XCode but the header and cpp files are just text files and can be moved between IDEs easily.
  5. gnasher729 macrumors P6


    Nov 25, 2005
    1. If you have Snow Leopard, go to and download the latest XCode version. If you run Leopard (10.5) or Tiger (10.4), ask us what the latest XCode version is that you can use.

    2. In XCode, File->New Project->Application->Command Line Tool, then change the type to "C++ stdc++". This will give you a project for code without a graphical user interface.
  6. illjazz thread starter macrumors regular

    Apr 18, 2008

Share This Page