I'm in a hard time trying to compile things with just dependencies within the system original folders. However, there are different versions of libraries and tools installed in /usr/local.
G++ is always including files from /usr/local/include but it is linking with libraries in /usr/lib what causes a great mess.
My quick solution is to just tell Linux (Ubuntu) to not look in /usr/local and just rely in things that are outside of it: in places where packages are installed by default.
The sad story is that I can't just delete what is in /usr/local, because some applications are using libraries there.
How this can be done?