From owner-freebsd-questions Mon Apr 12 15:19:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.cdcsd.k12.ny.us (hermes.cdcsd.k12.ny.us [208.20.126.190]) by hub.freebsd.org (Postfix) with SMTP id C6D7F155E5 for ; Mon, 12 Apr 1999 15:19:10 -0700 (PDT) (envelope-from knichel@cdcsd.k12.ny.us) Received: (qmail 21310 invoked from network); 12 Apr 1999 22:26:27 -0000 Received: from machine-124-139.cdcsd.k12.ny.us (HELO ?10.2.2.15?) (208.20.124.139) by hermes.cdcsd.k12.ny.us with SMTP; 12 Apr 1999 22:26:27 -0000 X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410) Date: Mon, 12 Apr 1999 18:17:40 -0400 Subject: g++ From: "knichel" To: freebsd-questions@FreeBSD.ORG Mime-version: 1.0 X-Priority: 3 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Message-Id: <19990412221912.C6D7F155E5@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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' What does this mean (pardon my ignorance)? ___________________________________________________________________ Mike Knichel Apple Authorized Service Provider Tel: (518) 622-0490 Fax: (518) 622-0493 Voice Mail: (518) 622-0490 x614 e-mail: knichel@cdcsd.k12.ny.us ___________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message