Okie on skynet, I have a c++ program that compiles very simple program,
just iostream.h and cout and a class,
I have rpms
and in /usr/lib I have
-rw-r--r-- 1 root wheel 2036516 Mar 21 1999
-r-xr-xr-x 1 root wheel 1184870 Mar 21 1999
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.18.104.22.168
-rwxr-xr-x 1 root wheel 1025339 Mar 21 1999
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
It all works fine for me on an RH6.0 just installed box ..
>> 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,
>> 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 ul.ie,airlied at skynet --------
Telecommunications Research Centre, ECE Dept, University of Limerick \
http://www.csn.ul.ie/~airlied -- Telecommunications Researcher \
--- TEL: +353-61-202695 -----------------------------------------------
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!