From owner-freebsd-questions Sun Sep 20 20:03:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA08222 for freebsd-questions-outgoing; Sun, 20 Sep 1998 20:03:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA08193 for ; Sun, 20 Sep 1998 20:03:22 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id PAA15352; Mon, 21 Sep 1998 15:00:33 +1200 (NZST) (envelope-from jonc@pinnacle.co.nz) Date: Mon, 21 Sep 1998 14:59:56 +1200 From: Jonathan Chen To: Davidalder@aol.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help with g++ In-Reply-To: <7c86c50c.3605af5c@aol.com> 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 On Sun, 20 Sep 1998 Davidalder@aol.com wrote: > I'm trying to compile a simple c++ program just to see if I can get the > compiler to work. It makes an "a.out" executable, but the executable does not > run. The message tells me that it is not an executable file. How do I get > g++ running? Works fine for me: kakapo-~,2:57pm> uname -a FreeBSD kakapo.pinnacle.co.nz 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Tue Aug 25 19:27:10 NZST 1998 root@kakapo.pinnacle.co.nz:/usr/src/sys/compile/KAKAPO i386 kakapo-~,2:57pm> cat a.c++ #include main () { cout << "Test\n"; } kakapo-~,2:57pm> g++ a.c++ -lg++ kakapo-~,2:58pm> ./a.out Test What are you doing on yours? -- Jonathan Chen -------------------------------------------------------------------- "Lots of folks confuse bad management with destiny" - Kin Hubbard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message