Re: [info-performer] Loader with C++ streams

Date view Thread view Subject view Author view

From: Benedikt Kessler (bjk++at++sgi.com)
Date: 12/14/2005 07:29:49


Hi!

Dan Johnston wrote:
>
> I tried to write my own loader. I have done this in the past, but the
> code was always in the 'C' language. This one I tried to use C++
> and use fstreams for file I/O and strstreams for file parsing.
>
> This did not work. The shared library was linked, but when 'perfly'
> tried to use it, there were errors about unresolved references. Given
> the usual C++ name mangling, the missing reference were very hard
> to read, but they appeared to indicate "allocation" and "streams"

Did you forget to link some of your classes with that loader dso?

Pipe your mangled names to c++filt which should give you the C++ names:

for example:
        nm /usr/lib/libpfv.so | c++filt
 
Bye! Benedikt

-- 
+---------------------------------+----------------------------------+
|Benedikt J. Kessler              | Silicon Graphics GmbH            |
|Advanced Media Products          | Am Hochacker 3 - Technopark      |
|SGI                              | 85630 Grasbrunn-Neukeferloh, FRG |
|    ---  __o       ,__o          |                                  |
| ------_ \<,_    _-\_<,          | Phone: (+49) 89 46108-366 or -0  |
|----- (*)/ (*)  (*)/'(*)         | Fax:   (+49) 89 46107-366        |
+---------------------------------+----------------------------------+
|E-Mail: bjk++at++sgi.com            Web (private): http://sgiweb.org/bjk |
|   Web: http://www.sgi.de                                           |
+--------------------------------------------------------------------+


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 14 2005 - 07:30:57 PST