Mail Archives: djgpp/1998/06/13/00:00:28
On Fri, 12 Jun 1998 21:05:44 +0100 in comp.os.msdos.djgpp Peter Wilkie
<bpw01 AT globalnet DOT co DOT uk> wrote:
: Hi, I am having problems compiling with gcc. I am getting the following
: compilation error:
: >c:/progra~1/access~1/djgpp/lib/crt0.o(.data+0x92):crt0.s:undefined
: reference to 'main'
: >c:/progra~1/access~1/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c:undefined
: reference to 'main'
C programs start at the `main' function. It looks as if your code did
not have one, so when the linker tried to make the executable it
couldn't find your entry point.
If you were just trying to compile a source file, not make an
executable, then you should give the `-c' switch, which makes gcc stop
after compiling, and output the object file.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
xu do tavla fo la lojban -- http://xiron.pc.helsinki.fi/lojban/lojban.html
- Raw text -