I had all my code compiling under a system that had gcc 4.1.1 and g++ 4.1.1. IT just gave me another system , that had gcc 4.1.2 and g++ 4.1.2. When I run with -v option, it says
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
However find gives me this
find /usr -name stddef.h /usr/lib/gcc/i386-redhat-linux/4.1.1/include/stddef.h
How do I force gcc to use a different search paths for i386 and 4.1.1, rather than 4.1.2 and x86_64 ?