Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jan 2, 2007, 06:41 PM   #1
macrumors member
Join Date: Nov 2006
using xCode for C++?

Can someone tell me how can I use xCode for C++ development? In the preferences menu it only allows me to select AppleScript for the default languange and I can't save files in any other formats...

I wan't an editor + compilator (like xCode is..?) which works for C++. Where I could run the code, maybe? (Something like DevC++ in Windows)

I am coming from the Linux/Windows world and I know I can use g++ in the Terminal to compile files, but i don't think that is the most comfortable way.

First week of using a Mac and not a native english speaker so don't be too harsh on me.

*update: it's nothing professional, just some stuff for the university

Last edited by Doctor Q; Jan 2, 2007 at 07:02 PM. Reason: post moved to its own thread
letaalio is offline   0 Reply With Quote
Old Jan 2, 2007, 07:57 PM   #2
macrumors 6502a
Sayer's Avatar
Join Date: Jan 2002
Location: Austin, TX
It is Xcode, not xCode (this is not X-windows land).

Xcode is meant for working on projects, C/C++/objC projects.

You want to create a new Project instead of File via the File menu. There you can pick what type of code you want to write.
Obama is a true statesman whose experience as a state senator, half-term US Senator & guest lecturer in a Constitutional Law class has fully prepared him to take control of our nuclear arsenal.-Me
Sayer is offline   0 Reply With Quote
Old Jan 2, 2007, 08:07 PM   #3
Moderator emeritus
Join Date: Jun 2002
Location: Gone but not forgotten.
You'll want to select New... from the File menu and then, select a C++ tool project.

Remove the code you don't want and replace it with the code for your assigment. You can build and run and it should work fine.

You could also compile and run on the command line, but it's much easier to create a project and edit the files in Xcode.
bousozoku is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
using Xcode for c++ . . . theturban Mac Programming 4 Nov 9, 2011 05:43 PM
Learning how to use Xcode / interface builder to program in c/++ furycd001 Mac Programming 6 Sep 20, 2011 04:45 AM
Should I use Xcode 3.2.5 or new Xcode 4? idevelopr Mac Programming 20 Mar 28, 2011 01:45 PM
Using XCode for learning C++ SC68Cal Mac Programming 3 Aug 11, 2006 01:15 AM
Want to use Xcode for Java class. Need help getting started. jeffgarden Community 2 Jan 15, 2004 12:37 AM

All times are GMT -5. The time now is 12:12 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC