[SuSE Linux] gcc2.8.1 problem with segmentation fault
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 majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
At 16.48 22/12/98 +0100, Daniel Karlsson <dk11ae@student.hik.se> wrote:
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.
How did you set up the link in /lib ? How did you compile the glibc and stdlibc? Thanks Massimo Lusetti - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (2)
-
dk11ae@student.hik.se
-
m.lusetti@mo.nettuno.it