Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / December 2005



Tip: Looking for answers? Try searching our database.

A terribly newbie question.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex the Bold - 29 Dec 2005 15:32 GMT
This is going to sound silly, but well, I've reached the end of my
patience hunting for the answer. Here goes:

I'm trying to learn C++. I'm running OS X. Can someone point me toward
a resource (or just tell me -- I'm quite willing to have the answer
just handed to me at this point) that will tell me, simply and
specifically, what compiler I should be using? None of my "Hello,
World!" exercises will compile.

Thanks.
vze35xda@verizon.net - 29 Dec 2005 16:21 GMT
/usr/bin/g++ (OS X 10.4.3 with XCode 2.2)

It does sound like you have not installed the developer tools.  You
might check if they are there /Developer should be on your hard drive.
If not check in /Applications/Installers and see if the Developer tools
are there.  If not go to http://developer.apple.com/ and download them.
If you are not a member you will have to join but it's free.

After you install them you should have all the tools and I would
suggest you try XCode as a development environment unless you wish to
work on the command line.  XCode is a nice tool that integrates GNU
C,GDB and a pretty good editor in a nice package.  It also organizes
all your code for a program in a project that allows you to easily
access any part.

--jim
Michael Ash - 29 Dec 2005 20:41 GMT
> It does sound like you have not installed the developer tools.  You
> might check if they are there /Developer should be on your hard drive.
> If not check in /Applications/Installers and see if the Developer tools
> are there.  If not go to http://developer.apple.com/ and download them.
> If you are not a member you will have to join but it's free.

Even if you have an installer in /Applications/Installers, check the
version before you install it. The latest is 2.2, and depending on when
you got your computer, it's likely that the on-disk version is earlier
than that. Xcode has been getting significantly better with each version,
and the other tools (like gcc) have been getting fixes and useful
additions as well. Of course, if your connection is slow enough that
downloading an 800MB file is painful, then you probably would prefer the
on-disk version in any case.

Signature

Michael Ash
Rogue Amoeba Software

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.