Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > c++ compiling

c++ compiling
Thread Tools
Senior User
Join Date: Oct 2003
Location: Minneapolis
Status: Offline
Reply With Quote
Nov 21, 2004, 04:15 PM
 
I am currently enrolled in a c++ class and we use unix machines. In the terminal we use the command line "g++ name.cpp" to compile our program. does anyone know how i can include this command into the darwin terminal, or is there a different command that does this? thanks.
     
Fresh-Faced Recruit
Join Date: Aug 2004
Location: Canberra, City of Sin
Status: Offline
Reply With Quote
Nov 21, 2004, 05:35 PM
 
(1) Install the free Developer Tools.

(2) There is no 2.
I would like you on a long black
leash,
You can bring me all the things I
need.
     
Mac Elite
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
Nov 21, 2004, 07:45 PM
 
2) Application->Utilities->Terminal.app

3) No step 3, your in UNIX land baby!
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 21, 2004, 07:51 PM
 
Originally posted by staph:
(2) There is no 2.
True, but there are:

1.25: Register for a free Apple Developer Connection online membership at: http://connect.apple.com/
1.5: Log in and proceed to "Download Software" -> "Developer Tools"
1.75: Download "Xcode Tools v1.2"... it's a large file and will take a few hours to download depending on your connection.

The "developer tools" are a bunch of programs that allow you to develop software on Mac OS X. This includes the command line tools (g++, make, gdb, etc) and also Mac OS X specific tools (XCode, shark, quartz debug, etc).

I compile lots of software on my Powerbook for my computer science classes, good to be a Mac user, eh?
(Last edited by [APi]TheMan; Nov 22, 2004 at 02:32 AM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Senior User
Join Date: Oct 2003
Location: Minneapolis
Status: Offline
Reply With Quote
Nov 22, 2004, 12:31 AM
 
thanks a lot. yea, love the mac
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 22, 2004, 02:34 AM
 
Originally posted by TubaMuffins:
thanks a lot. yea, love the mac
Awesome. So what kind of classes are you going to be taking? Data structures, algorithms, theory, technical writing?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Nov 22, 2004, 07:03 AM
 
Actually, XCode is up to version 1.5, not 1.2. One caveat, if you install XCode 1.5 and want to do audio work, then do a custom install and uncheck Install Headers.

If you don't uncheck Install Headers, then you will need to reinstall the lastest QuickTime, then install the Core Audio 1.3.1 SDK.
20" iMac G5! :D AND MacBook 1.83GHz!
Canon Digital Rebel Kit + 75 - 300mm lens. Yum Yum! :D
Check out my OS X Musical Scales program
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 22, 2004, 09:46 AM
 
Originally posted by PBG4 User:
Actually, XCode is up to version 1.5, not 1.2. One caveat, if you install XCode 1.5 and want to do audio work, then do a custom install and uncheck Install Headers.

If you don't uncheck Install Headers, then you will need to reinstall the lastest QuickTime, then install the Core Audio 1.3.1 SDK.
You're correct about XCode version 1.5, however 1.5 is not a standalone install if I recall correctly. You must install 1.2 before you can apply the 1.5 update.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:00 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2