Date: Mon, 21 Sep 1998 14:59:56 +1200 From: Jonathan Chen <jonc@pinnacle.co.nz> To: Davidalder@aol.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help with g++ Message-ID: <Pine.SGI.4.02.9809211456480.5666-100000@tui.pinnacle.co.nz> In-Reply-To: <7c86c50c.3605af5c@aol.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <iostream.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.02.9809211456480.5666-100000>