From owner-freebsd-questions Thu Apr 1 8:55:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freed.libdns.qc.ca (derby.JSP.UMontreal.CA [132.204.45.26]) by hub.freebsd.org (Postfix) with ESMTP id A81D814E3E for ; Thu, 1 Apr 1999 08:54:44 -0800 (PST) (envelope-from spidey@libdns.qc.ca) Received: from localhost (spidey@localhost) by freed.libdns.qc.ca (8.9.2/8.9.2) with SMTP id LAA23630; Thu, 1 Apr 1999 11:54:41 -0500 (EST) (envelope-from spidey@libdns.qc.ca) X-Authentication-Warning: freed.libdns.qc.ca: spidey owned process doing -bs Date: Thu, 1 Apr 1999 11:54:41 -0500 (EST) From: Spidey Reply-To: Spidey To: Ben Smithurst Cc: freebsd-questions Subject: Re: Compilation problems... In-Reply-To: <19990401114850.A39312@scientia.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG That was it! Thanks a lot!!! On Thu, 1 Apr 1999, Ben Smithurst wrote: > 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 > When a man lies he murders some part of the world These are the pale deaths which men miscall their lives All this I can't witness any longer Cannot the kingdom of salvation take me home To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message