Re: C++ DSO loaders

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++dingbat.clubfed.sgi.com)
Fri, 19 Jun 1998 15:02:59 -0400


Chris,

If you are compiling in C++ the names of functions are getting mangled try
prototyping pfdLoadFile_Tera like this,

extern "C" {
pfdLoadFile_Tera(const char *fileName);
}
to prevent name mangling.

Brian

On Jun 19, 11:53am, Chris Purvis wrote:
> Subject: C++ DSO loaders
>
> I'm trying to convert a custom loader, pfTera.c, over to C++ and am having
> run time problems. When I run the C++ loader on perfly, perfly says
> that pfdLoadFile_Tera is not defined in libpfTera_ogl.so. I've made
> very little changes to pfTera.c itself. It seems like Performer is
> recognizing the loader, but is not able to see anything inside it.
>
> I've used two Makefiles and neither of them work:
>
> #!smake
>
> PFROOT ?= $(ROOT)
> include $(PFROOT)/usr/share/Performer/src/pfmakedefs
>
> LIBRARY = libpfTera
> CXXFILES = \
> pfTera.C
>
> include $(PFROOT)/usr/share/Performer/src/pfmakerules
>
> _________________________________________________________________
>
> #!smake
>
> libpfTera: pfTera.o
> CC -shared -all -check_registry /usr/lib/so_locations -set_version \
> sgi4.0 -mips3 -n32 -nostdlib -L/usr/lib32/mips3 \
> -L/usr/lib32 pfTera.o -o libpfTera_ogl.so
>
> pfTera.o:
> CC -DN32 -DIRIX6_5 -I/usr/include -fullwarn -nostdinc \
> -mips3 -n32 -O -Olimit 2000 -MDupdate Makedepend -woff 1685,\
> 515, 608, 658, 799, 803, 852, 1048, 1233, 1499 -c pfTera.C
>
>
> Again--this works when the loader is in C. Any suggestions?
>
>
> Thanks,
>
> Chris Purvis
> Applied Research Labs--Advanced Sonar Division
> The University of Texas at Austin
> cpurvis++at++arlut.utexas.edu
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
>-- End of excerpt from Chris Purvis

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) VisSim Technical Consultant 12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293 Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:34 PDT

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