On Wed, Oct 04, 2000 at 08:57:44PM +0200, Bernhard Rosenkraenzer wrote:
> On Wed, 4 Oct 2000, Steve Borho wrote:
>
> > Has anyone tried to compile a C++ program which uses the stdc++ libs
> > with 7.0?
>
> Sure - no problems at all here.
>
> > Initially the compile complains it can't find header files. A quick
> > glance shows that /usr/include/g++ is no more and that
> > /usr/include/g++-2 and -3 are now there... the -2 version is owned by
> > the compat-libstc packages and the -3 are owned by the new compiler...
>
> /usr/include/g++-3 is the correct one and is automatically used by the
> compiler.
> Are you sure you invoked the compiler as g++ and not just gcc?
ix% g++ -g -Wall -c -o pmcomp_input.o pmcomp_input.C
In file included from pmcomp_input.C:16:
pmcomp.hpp:21: iostream: No such file or directory
pmcomp.hpp:22: vector: No such file or directory
pmcomp.hpp:23: set: No such file or directory
<snip>
ix% g++ -g -Wall -I/usr/include/g++-3 -c -o pmcomp_input.o pmcomp_input.C
In file included from /usr/include/g++-3/vector:31,
from pmcomp.hpp:22,
from pmcomp_input.C:16:
/usr/include/g++-3/stl_alloc.h:742: invalid member template declaration
/usr/include/g++-3/stl_alloc.h:780: invalid member template declaration
/usr/include/g++-3/stl_alloc.h:817: invalid member template declaration
/usr/include/g++-3/stl_alloc.h:858: invalid member template declaration
/usr/include/g++-3/stl_alloc.h:961: empty component declaration
/usr/include/g++-3/stl_alloc.h:961: parse error before `<'
/usr/include/g++-3/stl_vector.h: In method `_Tp * vector<_Tp,_Alloc>::begin()':
In file included from /usr/include/g++-3/vector:34,
from pmcomp.hpp:22,
from pmcomp_input.C:16:
<snip>
ix% g++ -g -Wall -I/usr/include/g++-2 -c -o pmcomp_input.o pmcomp_input.C
ix%
> You should have /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
>
> Make sure you installed gcc-c++, libstdc++ and libstdc++-devel. Looks like
> at least one of them is missing on your system.
ix% rpm -q gcc-c++ libstdc++ libstdc++-devel
gcc-c++-2.96-54
libstdc++-2.96-54
libstdc++-devel-2.96-54
ix% which g++
/celox/bin/g++
Oooof. There it is. Sorry about that. I need to change my path.
I'm getting the site wide compiler. Thanks for the help.
--
Steve Borho Voice: 314-439-8342
Member of Technical Staff
Celox Networks Inc http://www.ietf.org/rfc/rfc1925.txt
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list