Hi, where does the compiler look for libraries and which one does he take

Hi,

where does the Arduino compiler look for libraries and what if there is more than one instance of a library, which one will he (or is it female?) take?

You might find this helpful:

http://arduino.cc/en/Hacking/BuildProcess