Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Compiling in MacOS X

Compiling in MacOS X
Thread Tools
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Oct 24, 2000, 08:24 PM
 
I'm writing some C programs in emacs for a programming course. However, this emacs is nothing like what I use on our Wintel machines at the university -even the key commands are different. As well (and more importantly), I don't seem to be able to find a compiler.

Is there a built-in compiler for MacOS X (or in emacs itself, like I'm used to)? If so, where would I find it - or, if not, the same thing.....

greg

------------------
Though the day's been
really long
I still feel I'm close to
nowhere....
Mankind's only chance is to harness the power of stupid.
     
Forum Regular
Join Date: Sep 2000
Location: Ronneby, Sweden
Status: Offline
Reply With Quote
Oct 24, 2000, 08:55 PM
 
Try using "cc" in the terminal. It's a c and objective c compiler (at least that's what the man page says). A good idea is to look at the developer forum for more info on compilers and editors.

I guess you use the graphical version of emacs in your school. There is a thread about this in the developer forum. Basically there is a carbonized version but it's from a very old version of emacs so even though you get the interface you don't get all the features (I havn't used it myself but that's what I've read).

/Gabbe
     
Professional Poster
Join Date: Jan 2000
Status: Offline
Reply With Quote
Oct 24, 2000, 09:10 PM
 
I'm going move this one to Mac OS Developer. Click through to find the post.
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Oct 24, 2000, 09:19 PM
 
Hmmm...not sure what you mean..."cc filename"? That gives me "OK? wc filename?", which then defaults to "NO" no matter what I do. Anyone else know what I'm doing wrong???? I'm in a tizzy here....

greg

------------------
Though the day's been
really long
I still feel I'm close to
nowhere....
Mankind's only chance is to harness the power of stupid.
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Dallas, Texas
Status: Offline
Reply With Quote
Oct 24, 2000, 09:39 PM
 
What they forgot to ask was if you had the developer's tools installed. If not, you can sign up to be an Apple developer and download them. The basic membership is free (web only) so it should be fine for you.

[FONT="Trebuchet MS"]Fully dynamic web site Starting Points.[/FONT]
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Oct 24, 2000, 09:46 PM
 
You mean I need the developer's tools just to write any program at all?

Ah. That MIGHT be my problem....

Thanks......

greg

------------------
Though the day's been
really long
I still feel I'm close to
nowhere....
Mankind's only chance is to harness the power of stupid.
     
drosenth
Guest
Status:
Reply With Quote
Oct 24, 2000, 09:55 PM
 
BTW: more info on the carbonated Emacs... It's version 19.14 and is *DAWWWG* slow. I love emacs; but, I'll stick with the Terminal.app-bound, fast, v.20.7.1 version.
     
Addicted to MacNN
Join Date: Sep 2000
Location: The Rock
Status: Offline
Reply With Quote
Oct 25, 2000, 09:33 AM
 
You mean there's another, faster program included in the terminal? How do I access it????

I'm new to all this stuff...especially Unix, so it's confusing sometimes...

greg

------------------
Though the day's been
really long
I still feel I'm close to
nowhere....
Mankind's only chance is to harness the power of stupid.
     
Forum Regular
Join Date: Sep 2000
Location: Ronneby, Sweden
Status: Offline
Reply With Quote
Oct 25, 2000, 07:10 PM
 
I think he refers to the version of emacs that you run "inside" the terminal. Just write "emacs" without the " in a terminal and emacs will start.

Good luck

/Gabbe
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2