[Pythonmac-SIG] Totally O.T. OS-X question

Chris Barker Chris.Barker at noaa.gov
Fri Jul 16 02:15:43 CEST 2004


Hi all,

This has nothing to do with Python, but you're a helpful group of 
knowledgeable folks, so I thought I try.

I'm trying to do some simple compilation with the command line gcc. Here 
is the code:

#include "stdio.h"

int main(){
     printf("hello world\n");
     return 0;
}

It couldn't be any simpler. However, when I try to compile it:

gcc -o junk junk.c

I get:

ld: can't locate file for: -lcrt1.o

Anyone have an idea? Shouldn't I be able to compile this very simplest 
of programs without providing library paths, etc. Besides that, I can't 
find a file with "crt1" in it on the system.

-thanks, Chris


-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list