Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 1999 11:48:51 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Spidey <beaupran@jsp.umontreal.ca>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Compilation problems...
Message-ID:  <19990401114850.A39312@scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.3.96.990331224016.11870E-100000@freed.libdns.qc.ca>
References:  <Pine.BSF.3.96.990331224016.11870E-100000@freed.libdns.qc.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Spidey wrote:

> gcc  -o ascp -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext
> -lX11 -lm 

This command doesn't include any .c files.

> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x69): undefined reference to `main'

Which is the usual cause of this error. crt1 is what starts programs, by
calling main(), but there are no files specified to define main().

This problem sometimes happens on software which doesn't work, sometimes
using gmake makes it work. If you're making a port, set USE_GMAKE=yes in
these cases. There may be a better, "approved" way though.

-- 
Ben Smithurst
ben@scientia.demon.co.uk

send a blank message to ben+pgp@scientia.demon.co.uk for PGP key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990401114850.A39312>