[Ilugc] Upgrading GCC3 to GCC4
Gopalarathnam Venkatesan
gopal at gopalarathnam.com
Tue Jan 10 15:37:28 IST 2006
On 1/10/06, Raja M. <raja.mallik at moschip.com> wrote:
> if you would have used a tar..
>
> #which gcc
>
> will tell you what location of your "gcc" like
> /usr/bin/gcc
>
> may be your new "gcc" is hiding somewhere in /use/local/bin/
>
> change your bash_profile
>
> export PATH=/<path of bin>/:$PATH
>
Instead, I would set and use CC, CXX accordingly for compiling programs.
If I want to compile using the new GCC toolchain, I would use
shell> export CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++
Most programs respect these variables.
--
Gopalarathnam Venkatesan
http://gopalarathnam.com/
More information about the ilugc
mailing list