Add the option -v to your gcc options, capture the output, check what the include and library search paths are that the compiler is trying to use.
Pick any small file (hello.c ?) otherwise you'll be overwhelmed by the output.
My thoughts here are . . .
That compiler is location independent, so it must have a sysroot= defined in its configuration and that may be messing with the "normal" (what a person expects) search order.
Last edited by knc1; 07-04-2012 at 07:06 PM.
|