|
|
Xcode help
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2004
Status:
Offline
|
|
Hi all, I just recently switched from PC to mac and need some help. I am a CS student and have been using Microsoft C+ compiler since it has a nice user interface and error checking.
When I switched over to the mac I discover Xcode. I do not know how to use it. Can someone please help?
How do you say create a C file?
aka
#include <stdio.h>
#include <stdlib.h>
void main ()
{
puts("Hi there");
return;
}
|
Powerbook G4 15" 1.5Ghz
80GB 5400RPM
2x256 PC2700 Sodimm
ATI 9700 128mb video card
CD/DVD Computer Drive
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2001
Status:
Offline
|
|
In the File menu simply select "New Project" and select the type of project you want. There are many options to choose from. Click on an item and read the description in the bottom portion of the window.
You can create a single file, but to use Xcode to compile and link you need to create a project. Creating a project sets up all the files, folders, bundle and compile/link settings that are appropriate to build the project type.
If you aren't sure what to make perhaps you should get some books on Mac OS X programming first. There are several paths you can take, each with their own quirks and semantics and languages.
There are also many example projects in the /Developer folder. Read through those, build a few and see what happens.
|
|
|
|
|
|
|
|
|
hayesk
|
|
You can also just use gcc on the commandline. What are your CS professors teaching? Most will use UNIX, which basically means you can just use your commandline in OS X.
If they are using Microsoft C++, then get new professors.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jul 2002
Status:
Offline
|
|
For a project setup for just C code, select 'Standard Tool' from the New Project window. The little description in the bottom of the window should say something about C.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2004
Status:
Offline
|
|
So I will just program liek normal?
|
Powerbook G4 15" 1.5Ghz
80GB 5400RPM
2x256 PC2700 Sodimm
ATI 9700 128mb video card
CD/DVD Computer Drive
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by shortyes:
So I will just program liek normal?
That doesn't really mean anything.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2004
Status:
Offline
|
|
Like to thank everyone that helped. finally got it to work. I'm still a bit slow since I was raised using MS C++ compiler.
|
Powerbook G4 15" 1.5Ghz
80GB 5400RPM
2x256 PC2700 Sodimm
ATI 9700 128mb video card
CD/DVD Computer Drive
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Apr 2003
Location: manticore or people's republic of haven
Status:
Offline
|
|
Originally posted by hayesk:
You can also just use gcc on the commandline. What are your CS professors teaching? Most will use UNIX, which basically means you can just use your commandline in OS X.
If they are using Microsoft C++, then get new professors.
that would be nice. . .mine also teach using M$ products (VB, VC++, C#, etc) but such is life. i will still learn the basics and can apply as needed to obj-c(++) and, sadly, i will probably be using M$ or linux when i graduate and start working. but such is life.
nick
|
some people are like slinkys: they don't do much, but are fun to push down stairs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|