This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ include files ``gone''?


Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

| Trying to compile the following snippet on i386-unknown-freebsd4.1
| 
|   #include <iostream>
|   #include <string>
|   #include <set>
|   #include <functional>
|   int main() { }
| 
| I get the following errors for current CVS sources:
| 
|   % g++ x.cc
|   x.cc:1:20: iostream: No such file or directory
|   x.cc:2:18: string: No such file or directory
|   x.cc:3:15: set: No such file or directory
|   x.cc:4:22: functional: No such file or directory
| 
| And in fact the include directory is empty:
| 
|   % ls -la $prefix/include/

I suspect the headers are installed in $prefix/include/g++-v3.

|   %
| 
| Something seems badly broken here, but I wonder why I'm the only one
| seeing this.

I've been talking about this with Mark.  

The compiler is used to search the standard headers in
 1) $PREFIX/include/g++-3 when configured to use V2, but
 2) $PREFIX/include/g++-v3 when configured to use V3.

After the switch (i.e. V3 on by default) the compiler is still
searching the headers in $PREFIX/include/g++-3 (which is wrong).

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]