C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 17th, 2003, 12:31 PM
lukejohnson80 lukejohnson80 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 lukejohnson80 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
os x compatible c++ compiler?

hi

i have searched the web for hours looking for a c compiler that can be run on a mac. if anybody knows where to download a free one, id be most grateful.

cheers
Luke

Reply With Quote
  #2  
Old July 17th, 2003, 12:46 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
http://fink.sourceforge.net/pdb/package.php/anjuta

Anjuta supports many different languages, such as C, C++

The standard C compiler it uses is gcc, and the C++ compiler it uses is g++.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #3  
Old May 24th, 2004, 07:16 PM
mojoma@bluebott mojoma@bluebott is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 mojoma@bluebott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Try Using X-code/Project Builder

All the files you need are on the developer cd included with OS X. If you don't have it I recomend spending the dough on Panther. It's worth the money. Make sure you select custom install and install everything. (gcc. is the C compiler.)

Here is a post I put up elsewhere about compiling C I think the same steps will apply for C+ (in step 3 choose C++ tool)

a):I found this great article here:URL

re:"Learning to compile C in OS X"
Although it is written for Project builder instead of X-code I managed to work it out. There is no need to use the terminal. Here is a step by step for others who are facing the same problem!

1. Open X-code
2. Under File select new project
3. In next window scroll all the way down to standard tool or (C++ tool)
4. Name your project and enter the filepath to where you want to store it.
5. Double-click the file main.c or (main.cpp) in your project window. (an editor will open up containing sample code)
6. Clear editor space and enter your C code.
7. Click Build and debug under the build and go icon.
8. If your code is good, a small "Succeeded" and Hammer Icon shows up on the right side of the debug window.
9. Click the hammer Icon
10. In the newly opened Build window Hit run.
Ta-Daaa!!!!

b):If you do want your executable to open in the terminal you can do this by double clicking the executable file that shows up in your project window after your have built your commands.

The file shows up as a little paper and pencil icon similar to the script editor icon except more square(sic.)

c):If you are working with de-bugging exercices you need to select "save-all" in the prompt window each time you are re-building your code in order for your changes in the code to be recognized.

Reply With Quote
  #4  
Old June 11th, 2004, 06:30 PM
drizzle drizzle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: OREGON
Posts: 24 drizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by laidbak
http://fink.sourceforge.net/pdb/package.php/anjuta

Anjuta supports many different languages, such as C, C++

The standard C compiler it uses is gcc, and the C++ compiler it uses is g++.


if you could provide some information on how to use the compiler, that would be great

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > os x compatible c++ compiler?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT