Mail Archives: djgpp/1999/10/11/14:41:07
On Sun, 10 Oct 1999, Branka Valentincic wrote:
> ---- Makefile -----
> est: estMain.o estTcl.o
> gcc -g -I/tcl/include -o est estMain.o estTcl.o\
> /Tcl/lib/tcl81.lib /Tcl/lib/tk81.lib -lm
> -------------------
>
> ----- output ------
> d:/djgpp/lib/crt0.o(.data+0xc2):crt0.s: undefined reference to `main'
> d:/djgpp/lib/libc.a(crt1.o)(.text+0x446):crt1.c: undefined reference to
> `main'
Quite simply, this says that the object files you tried to link in the
above Makefile snippet don't define the `main' function. You need to
find out why there's no `main' there.
> d:/djgpp/bin/ld.exe: bfd assertion fail
> /n/tmp/gnu/binutl-2.81/bfd/coff-i386.c:371
These probably mean that some file is in wrong format. Is it possible
that the *.lib files you are trying to use were compiled with a
non-DJGPP compiler? If so, you cannot link against them: the linker
won't recognize the object file format. See section 17.5 of the DJGPP
FAQ list for more about this.
- Raw text -