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 > Can't compile C code in 10.1!

Can't compile C code in 10.1!
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: New York
Status: Offline
Reply With Quote
Oct 1, 2001, 12:27 AM
 
OK so I've never tried compiling C in OS X. I did a lot of java all summer. So I try compiling some C code and I keep getting the following error:

/usr/bin/ld: /usr/lib/libSystem.dylib load command 6 unknown cmd field

in addition to whatever teh compiler says. Does anyone know why this is? I installed the developer tools off the ADC site after I installed 10.1 on a blank partition (reformatted while installing). I know that at least some of the stuff I'm trying to do should work without a hitch. This is extremely frustrating since I have a lot of work to do and not much time to do it.

Any help would be appreciated.
     
Professional Poster
Join Date: May 2001
Location: Hampton Roads, VA
Status: Offline
Reply With Quote
Oct 1, 2001, 09:17 AM
 
Originally posted by waffffffle:
<STRONG>OK so I've never tried compiling C in OS X. I did a lot of java all summer. So I try compiling some C code and I keep getting the following error:

/usr/bin/ld: /usr/lib/libSystem.dylib load command 6 unknown cmd field

in addition to whatever teh compiler says. Does anyone know why this is? I installed the developer tools off the ADC site after I installed 10.1 on a blank partition (reformatted while installing). I know that at least some of the stuff I'm trying to do should work without a hitch. This is extremely frustrating since I have a lot of work to do and not much time to do it.

Any help would be appreciated.</STRONG>
Well you're trying to use the 10.0.4 dev tools with 10.1. This will not work. You'll have to install the 10.1 dev tools. I just compiled "Hello World" to test the compiler, and it works fine. Right now the only way to get the 10.1 dev tools is to order the $20 upgrade. Or you could just wait a few days for Apple to put it up on their website.

All glory to the hypnotoad.
     
   
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 01:16 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