installing a second (older) gcc/g++ version (how to configure)
I'm about to build gcc-3.3.6 from source, to install on my Ubuntu 10.04LTS system. I don't want it to interfere with the gcc-4.4.3 which was installed from the Ubuntu repos, so I think I should run configure with --prefix=/usr/local/gcc-3.3.6 to keep it separate and make it easy to remove. Does this seem OK or is there a better way?
Also, will this mean that whenever I want to compile with ver. 3.3.6, I MUST use the -I compiler option to specify the headers under my gcc-3.3.6 directory, or is it OK to skip that & let the preprocessor use the headers in /usr/include?
By adding 'hardy' to the sources.list , or manual install.
Ubuntu is meant to have multiple compilers installed.
You get : /usr/bin/gcc-3.3 : g++-3.3 .
gcc-<any-version> knows where its own headers are.
( Like /usr/lib/gcc/i486-linux-gnu/<version>/include/ ).
|All times are GMT -5. The time now is 02:58 PM.|