| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. ![]() |
|
#4
|
|||
|
|||
|
Quote:
if you could provide some information on how to use the compiler, that would be great |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > os x compatible c++ compiler? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|