|Jan 2, 2007, 06:41 PM||#1|
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
|Jan 2, 2007, 07:57 PM||#2|
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
|Jan 2, 2007, 08:07 PM||#3|
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.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|The App Store app thinks Xcode is installed, but I deleted Xcode.||moonman239||Mac Applications and Mac App Store||3||May 6, 2014 05:53 PM|
|Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h||hrishidev||Mac Programming||7||Jun 2, 2013 10:36 AM|
|Xcode 4.5||iNeedAnsurs||iPhone||0||Jan 25, 2013 02:49 PM|
|Xcode 3 vs Xcode 4 when dealing with Objective-C||timebourne||Mac Programming||8||Sep 23, 2012 05:36 PM|
|XCode 4.4.1 to Xcode 4.5 in Mountain Lion||VinegarTasters||OS X 10.8 Mountain Lion||2||Sep 19, 2012 08:55 PM|
All times are GMT -5. The time now is 05:15 PM.