* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [000808 18:48]:
> 
> 
> On Tue, 8 Aug 2000, Richard Spencer wrote:
> 
> > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [000808 14:45]:
> > >
> > > find /usr/include -name iostream.h
> >
> > $ find /usr/include -name iostream.h
> > $
> That just told me your c++ header files are not where they belong.
> 
> I am getting desperate.  I just checked gcc-2.95.1.  they are there.
> 
> try this:
> 
> rpm -qli gcc
> 
> you might have to give it the whole version number.  It should spew a
> list of the files in gcc.  pipe it through grep.
> 
> rpm -ql gcc |grep iostream



Name        : gcc                          Relocations: /usr /lib 
Version     : 2.95.1                            Vendor: Vu Hung Quan 
<[EMAIL PROTECTED]>
Release     : 3                             Build Date: Sat Sep 11 15:20:38 1999
Install date: Mon Aug  7 05:43:18 2000      Build Host: binaire.cx
Group       : Development/Languages         Source RPM: gcc-2.95.1-3.src.rpm
Size        : 6822642                          License: GPL
Packager    : Vu Hung Quan <[EMAIL PROTECTED]>
URL         : http://www.gnu.org/
Summary     : gcc compilation system
Description :
This package contains the gnu C compiler and the corressponding
libraries.
/usr/bin/cc
/usr/bin/egcs
/usr/bin/gcc
/usr/bin/gcov
/usr/bin/i386-redhat-linux-gcc
/usr/bin/protoize
/usr/bin/unprotoize
/usr/doc/gcc-2.95.1
/usr/doc/gcc-2.95.1/ChangeLog
/usr/doc/gcc-2.95.1/ChangeLog.0
/usr/doc/gcc-2.95.1/ChangeLog.gcc
/usr/doc/gcc-2.95.1/ChangeLog.lib
/usr/doc/gcc-2.95.1/ChangeLog.libobjc
/usr/doc/gcc-2.95.1/ChangeLog.libobjc.libobjc
/usr/doc/gcc-2.95.1/FSFChangeLog
/usr/doc/gcc-2.95.1/FSFChangeLog.10
/usr/doc/gcc-2.95.1/FSFChangeLog.11
/usr/doc/gcc-2.95.1/README
/usr/doc/gcc-2.95.1/README-bugs
/usr/doc/gcc-2.95.1/README-fixinc
/usr/doc/gcc-2.95.1/README.ACORN
/usr/doc/gcc-2.95.1/README.ALTOS
/usr/doc/gcc-2.95.1/README.APOLLO
/usr/doc/gcc-2.95.1/README.C4X
/usr/doc/gcc-2.95.1/README.DWARF
/usr/doc/gcc-2.95.1/README.FRESCO
/usr/doc/gcc-2.95.1/README.NS32K
/usr/doc/gcc-2.95.1/README.RS6000
/usr/doc/gcc-2.95.1/README.TRAD
/usr/doc/gcc-2.95.1/README.X11
/usr/doc/gcc-2.95.1/README.gnat
/usr/i386-redhat-linux/lib/libiberty.a
/usr/info/gcc.info-1.gz
/usr/info/gcc.info-10.gz
/usr/info/gcc.info-11.gz
/usr/info/gcc.info-12.gz
/usr/info/gcc.info-13.gz
/usr/info/gcc.info-14.gz
/usr/info/gcc.info-15.gz
/usr/info/gcc.info-16.gz
/usr/info/gcc.info-17.gz
/usr/info/gcc.info-18.gz
/usr/info/gcc.info-19.gz
/usr/info/gcc.info-2.gz
/usr/info/gcc.info-20.gz
/usr/info/gcc.info-21.gz
/usr/info/gcc.info-22.gz
/usr/info/gcc.info-23.gz
/usr/info/gcc.info-24.gz
/usr/info/gcc.info-25.gz
/usr/info/gcc.info-26.gz
/usr/info/gcc.info-27.gz
/usr/info/gcc.info-28.gz
/usr/info/gcc.info-29.gz
/usr/info/gcc.info-3.gz
/usr/info/gcc.info-30.gz
/usr/info/gcc.info-4.gz
/usr/info/gcc.info-5.gz
/usr/info/gcc.info-6.gz
/usr/info/gcc.info-7.gz
/usr/info/gcc.info-8.gz
/usr/info/gcc.info-9.gz
/usr/info/gcc.info.gz
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/SYSCALLS.c.X
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/cc1
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/collect2
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/crtbegin.o
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/crtbeginS.o
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/crtendS.o
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/README
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/asm
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/asm/posix_types.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/float.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/g2c.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/gnu
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/gnu/types.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/iso646.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/limits.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/proto.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/selectbits.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/stdarg.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/stdbool.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/stddef.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/syslimits.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-alpha.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-arc.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-c4x.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-clipper.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-h8300.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-i860.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-i960.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-m32r.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-m88k.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-mips.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-mn10200.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-mn10300.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-pa.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-ppc.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-pyr.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-sh.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-sparc.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-spur.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/va-v850.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include/varargs.h
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/libgcc.a
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/libgcc.map
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/specs
/usr/man/man1/egcs.1
/usr/man/man1/gcc.1




> 
> found where it put it?  If not try
> 
> find / -type f -name iostream.h



Script started on Tue Aug  8 18:59:03 2000
[root@localhost rks]# find/  / -type f -name iostream.h
find: /proc/6/fd: Permission denied
[root@localhost rks]# exit
Script done on Tue Aug  8 18:59:45 2000

> 
> or cd to where the gcc-2.95.1 rpm is and try
> 
> rpm -qlp * |grep iostream



Script started on Tue Aug  8 19:06:00 2000
[root@localhost include]# pwd
/usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include
[root@localhost include]# exit
exit

Script done on Tue Aug  8 19:06:11 2000

Script started on Tue Aug  8 19:04:12 2000
[root@localhost include]# exitfind / -type f -name iostream.h
[root@localhost 
include]# exitls -lexitfind / -type f -name iostream.h
[root@localhost include]# exitexitfind / -type f -name iostream.h
[root@localhost include]# exitfind / -type f -name iostream.h
[root@localhost 
include]# exitrpm -qlp * grep ioster r  ream
README does not appear to be a RPM package
query of README failed
read failed: Is a directory (21)
query of asm failed
file3 does not appear to be a RPM package
query of file3 failed
float.h does not appear to be a RPM package
query of float.h failed
g2c.h does not appear to be a RPM package
query of g2c.h failed
read failed: Is a directory (21)
query of gnu failed
iso646.h does not appear to be a RPM package
query of iso646.h failed
limits.h does not appear to be a RPM package
query of limits.h failed
proto.h does not appear to be a RPM package
query of proto.h failed
selectbits.h does not appear to be a RPM package
query of selectbits.h failed
stdarg.h does not appear to be a RPM package
query of stdarg.h failed
stdbool.h does not appear to be a RPM package
query of stdbool.h failed
stddef.h does not appear to be a RPM package
query of stddef.h failed
syslimits.h does not appear to be a RPM package
query of syslimits.h failed
va-alpha.h does not appear to be a RPM package
query of va-alpha.h failed
va-arc.h does not appear to be a RPM package
query of va-arc.h failed
va-c4x.h does not appear to be a RPM package
query of va-c4x.h failed
va-clipper.h does not appear to be a RPM package
query of va-clipper.h failed
va-h8300.h does not appear to be a RPM package
query of va-h8300.h failed
va-i860.h does not appear to be a RPM package
query of va-i860.h failed
va-i960.h does not appear to be a RPM package
query of va-i960.h failed
va-m32r.h does not appear to be a RPM package
query of va-m32r.h failed
va-m88k.h does not appear to be a RPM package
query of va-m88k.h failed
va-mips.h does not appear to be a RPM package
query of va-mips.h failed
va-mn10200.h does not appear to be a RPM package
query of va-mn10200.h failed
va-mn10300.h does not appear to be a RPM package
query of va-mn10300.h failed
va-pa.h does not appear to be a RPM package
query of va-pa.h failed
va-ppc.h does not appear to be a RPM package
query of va-ppc.h failed
va-pyr.h does not appear to be a RPM package
query of va-pyr.h failed
va-sh.h does not appear to be a RPM package
query of va-sh.h failed
va-sparc.h does not appear to be a RPM package
query of va-sparc.h failed
va-spur.h does not appear to be a RPM package
query of va-spur.h failed
va-v850.h does not appear to be a RPM package
query of va-v850.h failed
varargs.h does not appear to be a RPM package
query of varargs.h failed
open of grep failed: No such file or directory
open of iostream failed: No such file or directory
[root@localhost include]# exit
exit

Script done on Tue Aug  8 19:04:50 2000

Huh?
> 
> >
> > Script started on Tue Aug  8 15:26:37 2000
> > [rks@localhost rks]$ ./hws
> > #include <iostream.h>
> >   int main(void){ cout<<"Hello World"<<endl; }
> > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/specs
> > gcc version 2.95.1 19990816/Linux (release)
> >  /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/cpp -lang-c++ -v
> -D__GNUC__=2
> > -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix
> > -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix
> > -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386)
> > -Di386 -D__i386 -D__i386__ hw.cxx /tmp/ccPQVjoe.ii
> > GNU CPP version 2.95.1 19990816/Linux (release) (i386 Linux/ELF)
> > #include "..." search starts here:
> > #include <...> search starts here:
> >  /usr/local/include
> >  /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/include
> >  /usr/include
> > End of search list.
> > The following default directories have been omitted from the search
> path:
> >  /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../include/g++-3
> 
> ??
> >
> >
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../i386-redhat-linux/include
> 
> ??  seems it is picking on g++-3 ??
> 
> I don't know why it is picking on g++-3, but when (if) you find what rpm
> has done with those header files, you can force it to see them with the
> environment variable CPLUS_INCLUDE_PATH
> 
> in, say, /etc/bashrc (this is RedHat)
> 
> export CPLUS_INCLUDE_PATH="<where you found them>/g++-3"
> 
> By this I mean, you will find them in a dir g++-3 somewhere, and I think
> you may need to include that as part of the include path.
> 
> Maybe you should just reinstall slackware :-).

Hey, don't kid; I really should!

I did have Slackware on another partition, you know. The only reason
I didn't switch over is that I was facing difficulties
trying to 'align' the two systems; I had done a year's worth of
tweaking and kept more or less lousy records in my log book.
If the truth be known, I kept the best records while cutting 
my teeth on Linux.  :-)

But now I can clearly see I'll end up with Slackware on my system
again. 

These attempts at locating the problem with gcc has better 
enabled me to troubleshoot, and work in the console. 
For example running scripts is FUN. I've seen you post results 
of scripts in your answers for newbies, and wondered "What's that?"
You've helped provide a valuble learning opportunity. Thanks again!
-- 
Richard Spencer -- Sao Paulo, Brazil
Running Linux kernel 2.2.16 and Redhat 6.0

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to