1
votes

In my PC, there are two directories under /usr/lib/gcc/i486-linux-gnu/

4.4 & 4.4.3

How does gcc know which lib to use? Is there a config file or the search path is build in?

If 4.4.3 is used, could i change to 4.4 ?

1

1 Answers

0
votes

Commonly you have a symlink in /usr/bin/gcc pointing to the actual gcc version you want to use. E.g. /usr/bin/gcc -> /usr/bin/gcc-4.3
Change this symlink to another version of gcc to use it.
Creating symlinks can be done using ln -s gcc gcc-4.3