Yes, it is true that you may have installed it, but when you issue the
command
"gcc --version" then the system will report that you have the gcc version
4.0
installed. That is because in /usr/bin there is a symbolic link named gcc
that
points to the gcc-4.0 executable located in the same directory.

The thing is that you can have as many versions of gcc and g++ you want
but only one is at any time enabled, by the means of this symbolic link.
So, if you want to change the gcc and g++ version that your programs will
use
when they issue gcc, or g++ then you will have to change the symbolic link
target
in that directory to the older version of gcc that you want. Of course the
older version
must have been installed previously in your system.

I have two versions of gcc, gcc 4.0 and gcc 3.3 and I use either one of them
whenever
I want.

Hope that I have helped.

Regards,

-Fk

On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> ---------- Forwarded message ----------
> From: Muhammad Usman <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Sun, 16 Apr 2006 19:36:23 -0700 (PDT)
> Subject: [ns] help with cygwin/gcc
> Hi all,
>   I have been trying to install the 802.11e HCCA mode implementation by
> the University of Pisa for Ns2. I tried unsuccessfully for cygwin on windows
> and the same on linux redhat 9.
>
>   I am using gcc versions 3.3.4 on cygwin since it comes pre-installed
> with the cygwin package. Apparently theres some problem with newer versions
> of gcc.So I tried to get either:
>
>   1. An old version of Cygwin in the hope that it would contain gcc 2.95
>   2. Try to install gcc 2.95 on my own
>
>   For the first, no working site seems to contain it and for the second, I
> have tried in vain to search for tips on installing gcc 2.95 on Cygwin.
>
>   As a last resort, I even tried running installing it on Debian Linux.
> The problem is again of gcc version 4. So I installed version 2.95 also on
> it, but when I tried to install, the ns still uses the version 4.
>
>   Its been quite a while and I would really appreciate if someone could:
>
>   1. Give me a URL of some older version of Cygwin with gcc 2.95.x in it
> OR
>   2. Tell me how to install gcc 2.95.x for cygwin OR
>   3. How to force ns in the debian environment to use gcc 2.95 instead of
> 4 (bye
>   the way i have only a user account on the debian machine and am using
> ssh and theres a line of alias gcc 2.95.....  ) OR
>   4. If someone has successfully installed either Dr Qiang's 802.11e on
> cygwin or even linux or the HCCA patch of the Universtiy of Pisa on cygwin
> or linux then kindly mention the steps as I run into errors and can't seem
> to get an older version of gcc installed
>
>   Regards.
>
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC and save
> big.
>
>
>
>
>


--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

Automation & Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
           [EMAIL PROTECTED]
Phone: +30-2310-891-826
----------------------------------------------

Reply via email to