PDA

View Full Version : Installing G++




QurazyQuisp
Jan 15, 2007, 10:32 PM
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.



iMeowbot
Jan 15, 2007, 10:44 PM
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 (http://www.porkrind.org/emacs/) and zenitani (http://homepage.mac.com/zenitani/emacs-e.html) 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.

QurazyQuisp
Jan 15, 2007, 10:52 PM
When using xcode, will I have to worry about issues compiling between my mac and say a debian server with g++?

iMeowbot
Jan 15, 2007, 11:01 PM
When using xcode, will I have to worry about issues compiling between my mac and say a debian server with g++?
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.