I am trying to compile programs in terminal using the gcc command but everytime I do i get the error as follows:
or this error when i try to link use -framework Foundation:
pretty much the same error i guess. Both source files are simple one line print statements so I know the error doesn't lie there.
I am running Snow Leopard on my mac book pro and I do have Xcode installed, I'm not sure if that matters though.
If anyone could tell me how to link the library that would be great!
test.c: In function main:
test.c:3: warning: incompatible implicit declaration of built-in function printf
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
or this error when i try to link use -framework Foundation:
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
pretty much the same error i guess. Both source files are simple one line print statements so I know the error doesn't lie there.
I am running Snow Leopard on my mac book pro and I do have Xcode installed, I'm not sure if that matters though.
If anyone could tell me how to link the library that would be great!