|Mar 19, 2012, 01:05 PM||#1|
Can't compile on Mac OSX 10.7
I'm running Mac OSX 10.7, and am using a Mac for the first time. I was a Windows user previously. Anyways, I'm having troubles compiling a C program. I downloaded Xcode and I have it in my $PATH so I can use the gcc compiler. However, when I try compiling my file.c program it gives me this:
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
I don't know what this means or how to fix it
I tried reinstalling Xcode, but that didn't work. This seems so basic, I hope someone out there has an answer.
edit: When I type in gcc -v it tells me the version is 4.2.1. But when I type in 'gcc -o hello.c' I get 'i686-apple-darwin11-llvm-gcc-4.2: no input files'. Shouldn't that also be 4.2.1 instead of 4.2?
Last edited by Alutard; Mar 19, 2012 at 01:10 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|My iMac osx 10.8.4 wont share files with anything?? mac or non mac (WD LIVE)||joejust||iMac||0||Sep 10, 2013 08:19 PM|
|Please compile this kext.||rabidz7||Mac Programming||7||Apr 18, 2013 07:13 PM|
|How to compile source code in mac os?||MacMan988||Mac Programming||3||Mar 2, 2013 10:40 PM|
|AppleScript examples I can compile?||2012Tony2012||Mac Programming||4||Dec 21, 2012 08:04 PM|
|Can someone compile VLC for iOS?||petrucci666||iPhone/iPad Programming||3||Dec 11, 2012 06:20 PM|
All times are GMT -5. The time now is 06:56 PM.