Date: Tue, 13 Apr 1999 10:23:32 +1200 (NZST) From: Jonathan Chen <jonc@pinnacle.co.nz> To: knichel <knichel@cdcsd.k12.ny.us> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: g++ Message-ID: <Pine.SC5.4.10.9904131023070.6095-100000@kiwi.pinnacle.co.nz> In-Reply-To: <19990412221912.C6D7F155E5@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Apr 1999, knichel wrote: > I am new to FreeBSD and have a question. I teach a C++ class in High School > and want to teach programming in a terminal, so I set up a BSD box. I use > PICO as my editor and I can compile my program using "g++ -c new.cc", but > when I try to link my program using "g++ -o new.o" I get the following > error... > > /usr/lib/crt1.o: In function `_start': > /usr/lib/crt1.o(.text+0x69): undefined reference to `main' You don't have a main() function. --------------------------------------------------------------------- Jonathan Chen | Opportunites are seldom labeled --------------------------------------------------------------------- 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?Pine.SC5.4.10.9904131023070.6095-100000>