PDA

View Full Version : Some help?




Soulstorm
Feb 1, 2005, 12:06 PM
I am new to programming. I only know how to use applescript but at least in that I am good. But now, I want to get involved with C. And what I need is just a program to write the code and compile it. I don't want any fancy things, just a plain text editor that can compile C in OS X. I am using OS X 10.3 and I haven't find any program to do that yet.

Do you have any recommendations? I would like the programs that you mention here to be freeware, or at least shareware, because in greece it is difficult to order any program (like codewarrior for example).

Can Virtual PC help me at this one?

Edit: I tried google search but didn't work. Also, i am considering developer tools by apple, but I don't think that developper tools are for beginners like me.

Thank you in advance.



widgetman
Feb 1, 2005, 12:36 PM
by the way, this thread has come up multiple times.

the editor of choice would probably be XCode, unless you want something more C-specific. It is available at developer.apple.com in the developer downloads section. (you have to log in or register to get it).

good luck!

Logik
Feb 1, 2005, 12:48 PM
by the way, this thread has come up multiple times.

the editor of choice would probably be XCode, unless you want something more C-specific. It is available at developer.apple.com in the developer downloads section. (you have to log in or register to get it).

good luck!

i will second this...

otherwise, install xcode (since it installs GCC).. command line.. "gcc inputfiles -o output file"

for simple stuff that will do it for ya

xcode is probably a better choice since it also includes a debugger that let's you easily find problems.. give it a shot

Soulstorm
Feb 1, 2005, 01:01 PM
by the way, this thread has come up multiple times.
Yeah, I know, i had some problem with my browser and i hit the button "submit" many times... sorry about that.

As for xCode, i will give it a shot, but i don't know how to configure it for me to write simple C language... For example, after creating the new project, it asks what type of document you want. What do I do from there, and what files do I edit? (yeah, i'm a bit annoying but do not forget, i am a beginner!)

Thanks, anyway!

widgetman
Feb 1, 2005, 06:41 PM
if you are into C, then make a new "Carbon Bundle" in XCode. C is great, but i really suggest getting into Cococa (Objective-C). Cocoa is WAY easier and just as powerful since you can use C, and C++ in the same project without doing anything special. I suggest checking out MacDevCenter (http://www.macdevcenter.com) and clicking on "Cocoa Programming in the left list of links under "Content". Scroll to the bottom of the next page that loads and look at the first few tutorials. Those are especially good for getting your bearings in Cocoa, and they even got me started. Highly recommended for all beginners.

Soulstorm
Feb 2, 2005, 05:20 AM
I would like to know more about C first before I move into C++ and start developping Cocoa applications. I don't know anything about making good apps using C yet, how can I begin to involve myself with C++? I need more experience in this I think, although I don't know how more complex is C++ compared to C.

widgetman
Feb 2, 2005, 05:56 PM
in my experience, C++ is much easier to grasp as a beginner than plain old C, but you'll have to be the jugde of that. I recommend either getting a book or finding a solid online tutorial for beginners.

netytan
Feb 5, 2005, 11:43 AM
by the way, this thread has come up multiple times.

the editor of choice would probably be XCode, unless you want something more C-specific. It is available at developer.apple.com in the developer downloads section. (you have to log in or register to get it).

good luck!

You should already have the Developers tools, either on a separate CD if your bought OS X from Apple or in the /Applications/Installers/Xcode Tools/ directory if you're using the installation CD that came with your Mac.

Note: this version is a little behind now (The current version is 1.5) however it should work fine :).

I would suggest Java or Objective-C instead of C++ when you’re done with C since they are the preferred languages for development on OS X.

Hope this helps,

Mark.