Hi,
normally the standard compiler will be used and this is gcc4.3 on opensuse 11. If you want to use the new installed gcc you have to set some environment variables before you run configure (don't do something else or remove files). First set the environment variables properly:
Code:
export CC=</opt/gcc/bin/gcc-xxx>
export CXX=</opt/gcc/bin/g++-xxx>
That will cause that now the specified commandos will be used instead of standard gcc and g++. Edit your ~/.bashrc and add
Code:
export LD_LIBRARY_PATH=/opt/gcc/lib:$LD_LIBRARY_PATH
This causes that you can run the program after it is compiled and linked. This is necessary because otherwise it won't find the linked libs which are now in a different location.
Then run configure (or what ever commando is used to prepare compilation) and look out that now the other compiler is used.
If you are using the gcc versions from the build service, you have to adjust the paths to /usr/bin/gcc-xxx and so on. I don't think that you have to adjust the LD_LIBRARY variable then because alls libs are installed to the default destination (as far as I know
).
hope i didn't miss a thing
Bookmarks