On Fri, Mar 4, 2011 at 5:55 PM, narendra babu <[email protected]> wrote:
> I have old gcc compiler version 3.3.3 in my system and  i want upgrade my gcc 
> to current 4.4.4 .
>
> Please let me know the the steps to upgrade to newer versions of gcc  and any 
> documents online will also be helpful


What distro are you using? Most distros ship with multiple GCC
versions.  Eg. Debian 5.0.8 (old stable) comes with 2.95, 3.2, 3.4,
4.1. 4.2 and 4.3.  The latest 6.x also includes 4.4.  You just have to
apt-get install gcc-4.3 and ensure symlink /usr/bin/gcc points to
/usr/bin/gcc-4.3.

To make the changes only to your user account, "export CC=gcc-4.3"
before calling make.  Or you can also create a the above symlink in
~/bin/gcc pointing and ensure PATH is set to ~/bin first.


> what are the changes to include paths , macros , flags libs when i upgrade to 
> gcc 4.4.4 or in simple what changes i should  do in my makefile or 
> application when i migrate to newer version of gcc .

You don't have to change anything in your Makefile to use a new
version of gcc.  You will reuse the same system libraries with
the new compiler as well.

Unless your app is using features which are tied to a specific
gcc release, the migration to a new compiler is seamless.

If you want to use new features available in gcc 4.4, then consult
the manuals.

- Raja
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to