Thread: GCC error
07-17-2004, 07:04 PM #1the_jesusGuestGCC error
I have noticed that when I try to compile code that I get an error saying that gcc cannot create executables. If I try something simple like:
gcc test.c -o test
I get the error "ld: can't locate file for: -lSystem"
If I run gcc without linking (-c) I don't get the error. I have basically come to the conclusion that I am missing a library. I have reinstalled gcc and the xcode tools serveral times and it has not fixed the problem. Any suggestions would be greatly appreciated.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By daqi in forum OS X - Development and DarwinReplies: 2Last Post: 05-14-2011, 12:02 AM
By Srinivasa in forum OS X - Development and DarwinReplies: 4Last Post: 01-29-2009, 09:39 AM
By jonnyd in forum OS X - Development and DarwinReplies: 2Last Post: 12-29-2007, 04:34 PM
By pokamonster in forum OS X - Operating SystemReplies: 1Last Post: 08-02-2007, 10:27 PM
By fedesuarez in forum OS X - Operating SystemReplies: 4Last Post: 02-01-2006, 02:50 PM