From owner-freebsd-questions@FreeBSD.ORG Sun Oct 7 15:08:32 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 805B616A418 for ; Sun, 7 Oct 2007 15:08:32 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id 1A98C13C474 for ; Sun, 7 Oct 2007 15:08:31 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id l97F8U53000992; Sun, 7 Oct 2007 17:08:31 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 40562B869; Sun, 7 Oct 2007 17:08:30 +0200 (CEST) Date: Sun, 7 Oct 2007 17:08:30 +0200 From: Roland Smith To: freebsd-questions@freebsd.org, James Jeffery Message-ID: <20071007150830.GC84686@slackbox.xs4all.nl> Mail-Followup-To: freebsd-questions@freebsd.org, James Jeffery References: <972994690710061253q483e26ber68f4716d3202d1fa@mail.gmail.com> <20071006201356.GB55336@slackbox.xs4all.nl> <20071006163312.GB61195@demeter.hydra> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vOmOzSkFvhd7u8Ms" Content-Disposition: inline In-Reply-To: <20071006163312.GB61195@demeter.hydra> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: 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: Sun, 07 Oct 2007 15:08:32 -0000 --vOmOzSkFvhd7u8Ms Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 06, 2007 at 10:33:12AM -0600, Chad Perrin wrote: > In the Unix world (such as with FreeBSD), I'd recommend C before C++, > too -- though probably long after Ruby or Perl. Too right. But it should be noted that both C and C++ give you enough rope to hang yourself with. My preference for doing things is; 1) Can it be done with a shell-script? (esp. one-time hacks) 2) Else use Perl, Octave, Ruby, but 3) If speed is key, use C. :-) > > > 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. > >=20 > > FreeBSD comes with the GNU C++ and C compilers installed. There are > > others available (Intel) or in progress (OpenWatcom). >=20 > Also in progress is the TenDRA compiler, though FreeBSD support is part > of what's "in progress". Both OpenBSD and NetBSD (pkgsrc) have recently imported Anders Magnusson's BSD-licensed pcc compiler. At this time it is i386 en C only. In time this might be a faster (as in compile-time) alternative to gcc. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --vOmOzSkFvhd7u8Ms Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHCPZuEnfvsMMhpyURAqNKAJ44hsP2pVl0vBOKmGwvGXxlMBHW+gCfbZMT f9tn/iTXRMzeCmefTcHkllA= =8Rz7 -----END PGP SIGNATURE----- --vOmOzSkFvhd7u8Ms--