From owner-freebsd-questions Thu Apr 1 4: 3:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id C68F515259 for ; Thu, 1 Apr 1999 04:03:39 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from scientia.demon.co.uk (ident=ben) by scientia.demon.co.uk with local (Exim 2.12 #4) id 10Sf1n-000AEh-00; Thu, 1 Apr 1999 11:48:51 +0100 (envelope-from ben@scientia.demon.co.uk) Date: Thu, 1 Apr 1999 11:48:51 +0100 From: Ben Smithurst To: Spidey Cc: freebsd-questions Subject: Re: Compilation problems... Message-ID: <19990401114850.A39312@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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