RE: Loader II

New Message Reply Date view Thread view Subject view Author view

From: Skluzacek, Christian (C.Skluzacek++at++fokkerspace.nl)
Date: 08/15/2001 04:17:50


It's the same problem, everything has to be built/linked/dynamically loaded
with the same c++ library. So unless you have the complete source to
Performer (which you can feel free to give me a copy of ;-) ), you are
forced to use the sgi compiler on sgi machines. This has always been a
disadvantage when using c++ libraries for cross-platform development I
believe (and of course the advantage of java). And I thought I heard awhile
ago that there was a way in g++ to set the name-mangling scheme to match
sgi's. But that's probably a rumor and probably not advised anyways. Anyone
know anything about that?

If you really really want to use g++ libraries with sgi performer, you could
take the desparate measure of first compiling your function under sgi c++
and looking at how the function gets name mangled (using nm), and then
compiling the function in g++ wrapping the function with extern "C" and
using the name-mangled name that sgi c++ uses. I've never tried it but I
think in theory it should work (but again probably not advisable for
everyday use)

Chris

> ----------
> From: Surakle++at++gmx.de[SMTP:Surakle++at++gmx.de]
> Sent: Wednesday, 15 August, 2001 12:08
> To: info-performer++at++sgi.com
> Subject: RE: Loader II
>
> Hi,
>
> > using gcc won't be found when (dynamically) linking with SGI C++. That's
> > probably the reason for your segvs. Try compiling all your code with SGI
> > C++. And as of version SGI C++ v7.3, I haven't had any problems with
> > namespace support although I haven't done anything fancy with them.
>
> Thanks Chris, this seems exactly to be the problem ...
> Because when I link with SGI C++ the loader is loaded from
> sgidlopen_version
> but then interpreting the c++ code made by the g++ compiler results in a
> segmentation fault.
>
> I think compiling that library with SGI C++ v7.3 might work but first I
> have
> an older compiler version (I think it s v7.2) and then the developers of
> that library say that it is only compiling correctly with g++ .
>
> What about compiling Performer with g++ ??? It is done for the Linux
> version
> I think, so is it possible under IRIX, too ??? Has any of the Performer
> specialists experiences with that ?? Is it enough to build just a g++
> version of
> libpfdu or do I have to rebuild all of Performer ????
>
> Thx for help,
>
> Sven
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
> SIGGRAPH 2001 Friends of Performer Meeting: Wed Aug 15, 4:00pm-6:00pm,
> Wilshire Grand Hotel, http://reality.sgi.com/performer/siggraph.html
> -----------------------------------------------------------------------
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 04:18:19 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.