more embedding into C woes: crt1.o compile error

Kragen Sitaker kragen at pobox.com
Wed May 22 02:32:02 EDT 2002


spam at fisher.forestry.uga.edu (Chris Fonnesbeck) writes:
> When trying to compile the code at the bottom of this message, I get
> the following error:
> 
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> undefined reference to `main'

That means you told gcc to build a runnable program (as opposed to a
.o program or a shared library), but there was no 'main' function, so
it couldn't.




More information about the Python-list mailing list