From owner-freebsd-questions@FreeBSD.ORG Sat Oct 6 23:57:24 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56BD616A418 for ; Sat, 6 Oct 2007 23:57:24 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id C88AA13C48A for ; Sat, 6 Oct 2007 23:57:23 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup25.ach.sch.gr [81.186.70.25]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l96NuVnP022064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 7 Oct 2007 02:57:11 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l96NuEgK004744; Sun, 7 Oct 2007 02:56:22 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l96NuBdd004742; Sun, 7 Oct 2007 02:56:11 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 7 Oct 2007 02:56:11 +0300 From: Giorgos Keramidas To: James Jeffery Message-ID: <20071006235610.GD4042@kobe.laptop> References: <972994690710061253q483e26ber68f4716d3202d1fa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <972994690710061253q483e26ber68f4716d3202d1fa@mail.gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.913, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.49, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: C++ Compiler On FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 23:57:24 -0000 On 2007-10-06 20:53, James Jeffery wrote: > Evening to you all (or morning in some parts of the world). > > Im learning C++ from Sams Teach Yourself C++, now many will call this > a dumb method, and the books pointless and stupid, but i have no > knowledge of any lower level languages, so i do need to be spoon fed > the basics. > > Im using Borland C++ compiler on XP and was wondering what compilers > there are for FreeBSD that would allow me to compile and execute some > of the examples i will practise from the book. The base system of FreeBSD includes g++ (the GNU C++ Compiler), and there are several versions of the GNU C++ compiler in the ports too: $ pwd /usr/ports/lang $ ls -ld gcc[0-9]* drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc28 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc295 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc32 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc33 drwxr-xr-x 3 root wheel - 512 Oct 4 18:43 gcc34 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc40 drwxr-xr-x 3 root wheel - 512 Oct 2 16:32 gcc41 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc41-withgcjawt drwxr-xr-x 3 root wheel - 512 Oct 2 16:32 gcc42 drwxr-xr-x 3 root wheel - 512 Sep 21 19:51 gcc42-withgcjawt drwxr-xr-x 3 root wheel - 512 Oct 2 16:32 gcc43 $