help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++3.3.3 compiled program crashes on another HPUX 11.11 having no g++


From: Nilesh
Subject: g++3.3.3 compiled program crashes on another HPUX 11.11 having no g++
Date: 19 Mar 2005 05:12:12 -0800
User-agent: G2/0.2

I have simple 2 line program compiled with g++3.3.3 on a HPUX11.11 say
A. This A machine has gcc 3.3.3 installed in it, and program runs fine.
I copied test program, libstdc++.sl.5, libgcc_s.sl to another HPUX
11.11 say B. B does not have any GCC on it. "sl" are copied so that
'ldd' on 'test' gets resolved fine.

Program is:
============
#include<iostream>
#include<string>
using namespace std;
int main()
{
        string str("test");
        cout << "test string " << str << endl;
}
==========
Command to link this tets program:
g++ -o test -lstdc++ test.cpp


CORE DUMP is: #gdb test core
=============================
HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions
to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the
program.
warning: Can't find file /opt/graphics/OpenGL/lib/libogltls.sl
referenced in dld
_list.
/opt/graphics/OpenGL/lib/libogltls.sl: No such file or directory.
#0  0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from
/usr/local/lib/libstdc++.sl.5
(gdb) bt
#0  0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from
/usr/local/lib/libstdc++.sl.5
#1  0xc5c16bec in
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0xec
    () from /usr/local/lib/libstdc++.sl.5
#2  0x35d8 in main+0x160 ()


thanks in advance
-Nilesh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]