Date: Mon, 11 Oct 1999 12:29:34 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Branka Valentincic cc: djgpp AT delorie DOT com, meolic AT uni-mb DOT si Subject: Re: YABQ: yet another beginner question In-Reply-To: <38007FBC.2F68@interblod.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.