[Dev] Switching to Ubuntu

Davor Cubranic cubranic at cs.ubc.ca
Sun Feb 19 14:12:07 PST 2006


Brendan O'Connor wrote:

> 1) gcc -V 3.4 ... the manpage says
>        -V version
>            The argument version specifies which version of GCC to 
> run.  This
>            is useful when multiple versions are installed.  For 
> example, verâ
>            sion might be 2.0, meaning to run GCC version 2.0.
>  
> no idea if this works for gcj or what
>  
>
Neat, it worked for gcj too:

    ~$ gcj --version
    gcj (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
    Copyright (C) 2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There
    is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
    PURPOSE.

    ~$ gcj -V 3.4 --version
    i486-linux-gnu-gcc-3.4 (GCC) 3.4.5 20050809 (prerelease) (Ubuntu
    3.4.4-6ubuntu8)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There
    is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
    PURPOSE.

However, gcj is not installed by default, only gcc is. Which means that 
if the user already has to install additional packages, he may just as 
well be asked to get gcj-3.4.

Davor


More information about the Dev mailing list