delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/11/14:41:07

Date: Mon, 11 Oct 1999 12:29:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Branka Valentincic <Branka DOT Valentincic AT interblod DOT com>
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: <Pine.SUN.3.91.991011122914.28307I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019