Re: [ILUG] C++ woes...

From: Dave Airlie (david.airlie at domain ul.ie)
Date: Mon 04 Oct 1999 - 15:58:56 IST


Okie on skynet, I have a c++ program that compiles very simple program,
just iostream.h and cout and a class,

I have rpms
egcs-c++-1.1.2-12
libstdc++-2.9.0-12
glibc-2.1.1-6
egcs-1.1.2-12

and in /usr/lib I have

-rw-r--r-- 1 root wheel 2036516 Mar 21 1999
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.a
-r-xr-xr-x 1 root wheel 1184870 Mar 21 1999
/usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
lrwxrwxrwx 1 root wheel 29 Sep 23 16:25
/usr/lib/libstdc++-libc6.1-1.a.2 -> libstdc++-2-libc6.1-1-2.9.0.a
lrwxrwxrwx 1 root wheel 30 Sep 23 16:26
/usr/lib/libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so
lrwxrwxrwx 1 root wheel 20 Sep 23 16:38
/usr/lib/libstdc++.so.2.7.2 -> libstdc++.so.2.7.2.8
-rwxr-xr-x 1 root wheel 1025339 Mar 21 1999
/usr/lib/libstdc++.so.2.7.2.8
lrwxrwxrwx 1 root wheel 18 Sep 23 16:38
/usr/lib/libstdc++.so.2.8 -> libstdc++.so.2.8.0
-rwxr-xr-x 1 root wheel 375773 Mar 21 1999
/usr/lib/libstdc++.so.2.8.0

It all works fine for me on an RH6.0 just installed box ..

Dave.

>
> Hi again,
>
> Thanks for the suggestion, but I'm not altogether sure that mixed rpms is
> the source of the problem...libstdc++.so is linked to the RH6 library, and
> I'm pretty sure that I installed all the c++ stuff from the RH6
> distro...it seems odd to me that the compile process is looking for a
> symbol which is included in a library in /usr/lib, and I can't see any
> libstdc++-devel package with headers in the RH6 RPMs...
>
> As a matter of interest, why did redhat opt for egcs over gcc for RH6? I
> have a sneaking suspicion that the problem's there. I wish I knew more about
> the internal workings of the compiler... the oddest thing about the whole
> story is that every write/read up to the last works, and the programs only
> core dump for the last one (it seems). And unfortunately the last one is
> the one of interest in most cases :)
>
> What packages are needed to successfully compile a c++ program?
> Are egcs, egcs-c++ and libstdc++ all that's needed?
>
> Thanks a lot,
> Dave.
>
> On Mon, 4 Oct 1999, David Neary wrote:
>
> > 1) First run, I got a number of "Undefined reference to `__eh_pc'" errors,
> > with "more to follow". Eventually, I figured that __eh_pc is part of
> > libstdc++.so, which is in /usr/lib, which was a little odd...
>
>
>

-- 
------------ David Airlie, David.Airlie at domain ul.ie,airlied at domain skynet --------
Telecommunications Research Centre, ECE Dept, University of Limerick \
http://www.csn.ul.ie/~airlied	-- Telecommunications Researcher      \
--- TEL: +353-61-202695 -----------------------------------------------


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:39 GMT