C++ Compiler On FreeBSD

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Oct 6 16:57:24 PDT 2007


On 2007-10-06 20:53, James Jeffery <cascadingstylez at googlemail.com> 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
    $




More information about the freebsd-questions mailing list