Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Simi131

macrumors newbie
Original poster
Hey, I'm new to programming and was trying to compile a simple helloworld.c program on terminal. But when I entered gcc helloworld.c, I get

/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 6 (__TEXT,__literal16) in load command 0
collect2: ld returned 1 exit status

Any ideas?

................

nevermind, I just needed to reinstall the developer tools, lol.
 
Do you have Xcode tools installed? Specifically the GCC compiler?

Just by the looks of it, it looks like it's looking for GCC in your PATH but it's not finding it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.