Hello !
I've compiled and installed glibc2.0.6 and gcc/libstdc++ 2.8.1 under
/usr/local/. But I have problem using it. Since I have gcc2.7.2.1 installed
with libc5 under /usr I tested a simple hello world, and my old g++ compiled
and the executable runs fine.
-------------------
#include <iostream.h>
int main()
{
cout << "hello world" << endl;
return 0;
}
--------------------
ldd a.out shows this:
libg++.so.27 => /usr/lib/libg++.so.27 (0x4000d000)
libstdc++.so.27 => /usr/lib/libstdc++.so.27 (0x40045000)
libm.so.5 => /lib/libm.so.5 (0x40076000)
libc.so.5 => /lib/libc.so.5 (0x4007f000)
But when I use g++2.8.1 it also compiles fine and ldd shows this:
libm.so.6 => /usr/local/lib/libm.so.6 (0x4000d000)
libc.so.6 => /usr/local/lib/libc.so.6 (0x40026000)
ld-linux.so.2 => /usr/local/lib/ld-linux.so.2 (0x400c8000)
But here is the problem, when I run this executable it just says segmentation
fault.
What can be the problem here, shouldn't there be a c++-library in the 2.8.1
executable ?
Also if I use g++ with the options -nostdinc -nostdinc++ to be sure that none
of my old headers are used which dirs do I need to include myself ?
I know that /usr/local/include and /usr/local/include/g++ are needed but I
guess there is more.
I really need help here. Please help me.
/daniel
-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html