public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++'s include path not including the g++ includes
@ 1999-11-15  8:13 Aaron
  1999-11-15  9:07 ` Jack Perdue
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Aaron @ 1999-11-15  8:13 UTC (permalink / raw)
  To: help-gcc

Hello all.

I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem that
g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
had this problem prior to 2.95.1 and then it went away when I compiled
2.95.1 but now it's back.

Any ideas why this would be?

For the record, it does not seem to be looking in any path ending with
"/g++" as it searches.

Thanx,
b.

-- 
*****
Please do not respond to the address in the headers of this message
You will be spam trapped if you do and your message will go into the
garbage.
If you want to respond send your message to
brian [at] interlinx [dot] bc [dot] ca or simply post a followup message
here.
*****
Brian J. Murrell                                            604 983 UNIX
InterLinx Support Services, Inc.                   North Vancouver, B.C.
     Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-15  8:13 g++'s include path not including the g++ includes Aaron
@ 1999-11-15  9:07 ` Jack Perdue
  1999-11-15 16:30   ` brian_murrell
  1999-11-30 23:28   ` Jack Perdue
  1999-11-16  0:01 ` brian_murrell
  1999-11-30 23:28 ` Aaron
  2 siblings, 2 replies; 8+ messages in thread
From: Jack Perdue @ 1999-11-15  9:07 UTC (permalink / raw)
  To: help-gcc

Aaron <aaaron@interlinx.bc.ca> wrote:

>Hello all.
>
>I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem that
>g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
>had this problem prior to 2.95.1 and then it went away when I compiled
>2.95.1 but now it's back.
>
>Any ideas why this would be?
>
>For the record, it does not seem to be looking in any path ending with
>"/g++" as it searches.


Can you post the output from "gcc -v" so we can see your search paths?

eg.

touch t.c
g++ -v t.c

jack
j-perdue@tamu.edu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-15  9:07 ` Jack Perdue
@ 1999-11-15 16:30   ` brian_murrell
  1999-11-30 23:28     ` brian_murrell
  1999-11-30 23:28   ` Jack Perdue
  1 sibling, 1 reply; 8+ messages in thread
From: brian_murrell @ 1999-11-15 16:30 UTC (permalink / raw)
  To: help-gcc

In article < 38303beb.60826908@news.tamu.edu >,
  j-perdue@tamu.edu (Jack Perdue) wrote:
>
> Can you post the output from "gcc -v" so we can
see your search paths?
>

Sure!  I should have posted that in the first
place.  :-)

Here's the whole thing up to the link phase:

Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cpp
-lang-c++ -v -D__GNUC__=2 -D__GNUG__=2
-D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun
-Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__
-D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun
-D__unix -Asystem(unix) -Asystem(svr4)
-D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc)
-Amachine(sparc) t.c /var/tmp/ccuLFch6.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include
 /usr/include
End of search list.
The following default directories have been
omitted from the search path:

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../include/g++-3
End of omitted list.

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cc1plus
/var/tmp/ccuLFch6.ii -quiet -dumpbase t.cc
-version -o /var/tmp/ccSukCkb.s
GNU C++ version 2.95.2 19991024 (release)
(sparc-sun-solaris2.6) compiled by GNU C version
2.95.2 19991024 (release).
 /usr/local/sparc-sun-solaris2.6/bin/as -V -Qy -s
-o /var/tmp/ccvKqx4d.o /var/tmp/ccSukCkb.s
GNU assembler version 2.9.1
(sparc-sun-solaris2.6), using BFD version 2.9.1
 /usr/local/sparc-sun-solaris2.6/bin/ld -V -Y
P,/usr/ccs/lib:/usr/lib -Qy
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtbegin.o
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2
-L/usr/local/sparc-sun-solaris2.6/lib
-L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib
/var/tmp/ccvKqx4d.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtend.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtn.o
GNU ld version 2.9.1 (with BFD 2.9.1)
  Supported emulations:
   elf32_sparc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o:
In function `_start':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o(.text+0x5c):
undefined reference to `main'


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-15  8:13 g++'s include path not including the g++ includes Aaron
  1999-11-15  9:07 ` Jack Perdue
@ 1999-11-16  0:01 ` brian_murrell
  1999-11-30 23:28   ` brian_murrell
  1999-11-30 23:28 ` Aaron
  2 siblings, 1 reply; 8+ messages in thread
From: brian_murrell @ 1999-11-16  0:01 UTC (permalink / raw)
  To: help-gcc

In article < 38303063.4536FAAB@interlinx.bc.ca >,
  Aaron <aaaron@interlinx.bc.ca> wrote:
> Hello all.
>
> I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem
that
> g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
> had this problem prior to 2.95.1 and then it went away when I compiled
> 2.95.1 but now it's back.
>
> Any ideas why this would be?
>
> For the record, it does not seem to be looking in any path ending with
> "/g++" as it searches.

OK, now that I have wasted all your time and proved sufficiently that I
am a moron, I will share with you my mistake.  It was assuming that the
directory that would be searched for was .../g++, when indeed the
include directory for the stdc++ library with 2.95.2 is .../g++-3.  The
three at the end is the libstdc++ interface version number.  Anyway,
because my gcc was built with RPM and in packages, I forgot to install
the libstdc++-devel-2.95.2 package which puts down the g++-3 directory.

Now back to your regularly sheduled program.

Thanx,
b.


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-15 16:30   ` brian_murrell
@ 1999-11-30 23:28     ` brian_murrell
  0 siblings, 0 replies; 8+ messages in thread
From: brian_murrell @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

In article < 38303beb.60826908@news.tamu.edu >,
  j-perdue@tamu.edu (Jack Perdue) wrote:
>
> Can you post the output from "gcc -v" so we can
see your search paths?
>

Sure!  I should have posted that in the first
place.  :-)

Here's the whole thing up to the link phase:

Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cpp
-lang-c++ -v -D__GNUC__=2 -D__GNUG__=2
-D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun
-Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__
-D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun
-D__unix -Asystem(unix) -Asystem(svr4)
-D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc)
-Amachine(sparc) t.c /var/tmp/ccuLFch6.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../sparc-sun-solaris2.6/include

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include
 /usr/include
End of search list.
The following default directories have been
omitted from the search path:

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/../../../../include/g++-3
End of omitted list.

/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/cc1plus
/var/tmp/ccuLFch6.ii -quiet -dumpbase t.cc
-version -o /var/tmp/ccSukCkb.s
GNU C++ version 2.95.2 19991024 (release)
(sparc-sun-solaris2.6) compiled by GNU C version
2.95.2 19991024 (release).
 /usr/local/sparc-sun-solaris2.6/bin/as -V -Qy -s
-o /var/tmp/ccvKqx4d.o /var/tmp/ccSukCkb.s
GNU assembler version 2.9.1
(sparc-sun-solaris2.6), using BFD version 2.9.1
 /usr/local/sparc-sun-solaris2.6/bin/ld -V -Y
P,/usr/ccs/lib:/usr/lib -Qy
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtbegin.o
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2
-L/usr/local/sparc-sun-solaris2.6/lib
-L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib
/var/tmp/ccvKqx4d.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtend.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crtn.o
GNU ld version 2.9.1 (with BFD 2.9.1)
  Supported emulations:
   elf32_sparc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o:
In function `_start':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o(.text+0x5c):
undefined reference to `main'


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-15  9:07 ` Jack Perdue
  1999-11-15 16:30   ` brian_murrell
@ 1999-11-30 23:28   ` Jack Perdue
  1 sibling, 0 replies; 8+ messages in thread
From: Jack Perdue @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

Aaron <aaaron@interlinx.bc.ca> wrote:

>Hello all.
>
>I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem that
>g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
>had this problem prior to 2.95.1 and then it went away when I compiled
>2.95.1 but now it's back.
>
>Any ideas why this would be?
>
>For the record, it does not seem to be looking in any path ending with
>"/g++" as it searches.


Can you post the output from "gcc -v" so we can see your search paths?

eg.

touch t.c
g++ -v t.c

jack
j-perdue@tamu.edu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* g++'s include path not including the g++ includes
  1999-11-15  8:13 g++'s include path not including the g++ includes Aaron
  1999-11-15  9:07 ` Jack Perdue
  1999-11-16  0:01 ` brian_murrell
@ 1999-11-30 23:28 ` Aaron
  2 siblings, 0 replies; 8+ messages in thread
From: Aaron @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

Hello all.

I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem that
g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
had this problem prior to 2.95.1 and then it went away when I compiled
2.95.1 but now it's back.

Any ideas why this would be?

For the record, it does not seem to be looking in any path ending with
"/g++" as it searches.

Thanx,
b.

-- 
*****
Please do not respond to the address in the headers of this message
You will be spam trapped if you do and your message will go into the
garbage.
If you want to respond send your message to
brian [at] interlinx [dot] bc [dot] ca or simply post a followup message
here.
*****
Brian J. Murrell                                            604 983 UNIX
InterLinx Support Services, Inc.                   North Vancouver, B.C.
     Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g++'s include path not including the g++ includes
  1999-11-16  0:01 ` brian_murrell
@ 1999-11-30 23:28   ` brian_murrell
  0 siblings, 0 replies; 8+ messages in thread
From: brian_murrell @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

In article < 38303063.4536FAAB@interlinx.bc.ca >,
  Aaron <aaaron@interlinx.bc.ca> wrote:
> Hello all.
>
> I have compiled gcc 2.95.2 on my Solaris 2.6 box and it would seem
that
> g++ no longer looks in /usr/local/include/g++ for C++ header files.  I
> had this problem prior to 2.95.1 and then it went away when I compiled
> 2.95.1 but now it's back.
>
> Any ideas why this would be?
>
> For the record, it does not seem to be looking in any path ending with
> "/g++" as it searches.

OK, now that I have wasted all your time and proved sufficiently that I
am a moron, I will share with you my mistake.  It was assuming that the
directory that would be searched for was .../g++, when indeed the
include directory for the stdc++ library with 2.95.2 is .../g++-3.  The
three at the end is the libstdc++ interface version number.  Anyway,
because my gcc was built with RPM and in packages, I forgot to install
the libstdc++-devel-2.95.2 package which puts down the g++-3 directory.

Now back to your regularly sheduled program.

Thanx,
b.


Sent via Deja.com http://www.deja.com/
Before you buy.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-15  8:13 g++'s include path not including the g++ includes Aaron
1999-11-15  9:07 ` Jack Perdue
1999-11-15 16:30   ` brian_murrell
1999-11-30 23:28     ` brian_murrell
1999-11-30 23:28   ` Jack Perdue
1999-11-16  0:01 ` brian_murrell
1999-11-30 23:28   ` brian_murrell
1999-11-30 23:28 ` Aaron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).