Installing G++

Discussion in 'Mac Programming' started by QurazyQuisp, Jan 15, 2007.

  1. macrumors newbie

    Joined:
    Nov 3, 2006
    Location:
    Jersey City, NJ
    #1
    Hello,
    I need to use G++ for one of my programming classes... I used to before purchasing a mac just ssh into the schools servers and use emacs/g++ remotely, but now that I'm on a unix based system, I'd like to run g++...

    Does anyone know how to install/download g++?

    Also, have you guys ever heard of aquamacs? (http://aquamacs.org/) Should I install this or just go with emacs?

    Thanks.
     
  2. macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #2
    The regular developer tools (Xcode) that came with your OS X discs use GCC, and g++ comes along for the ride.

    Aquamacs is a nice emacs build. There are also the porkrind and zenitani builds if you prefer an emacs that doesn't try so hard to pretend it's a Mac program. They're all built around reasonably recent GNU code and will run all the usual elisp goodies.
     
  3. thread starter macrumors newbie

    Joined:
    Nov 3, 2006
    Location:
    Jersey City, NJ
    #3
    When using xcode, will I have to worry about issues compiling between my mac and say a debian server with g++?
     
  4. macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    If you stick to the standards, your source code should be portable and compile fine in both environments. Jump into BSDisms/Macisms/Linuxisms, and you're going to have to deal with the usual conditional fun.

    It's a good idea to peek at the man pages for both operating systems when looking up functions, to make sure that you're not falling into that territory.
     

Share This Page