g++ can't locate iosfwd

Ian Lance Taylor iant@google.com
Wed Aug 24 23:07:00 GMT 2011

Maciej Bliziński <maciej@opencsw.org> writes:

> Interestingly, it looks like the include files are found underneath
> what was probably configured as libdir (PREFIX/lib).  In my build,
> I've defined prefix to /opt/csw/gcc4, but I have set libdir to
> /opt/csw/lib.  How does gcc get the idea to search
> /opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.3.3/../../../../include/c++/4.3.3
> for the include files? Is it defined in a file such as config.h?

Look for unlibsubdir and libsubdir_to_prefix in gcc/Makefile.in.


More information about the Gcc-help mailing list