Re: C++ API

New Message Reply Date view Thread view Subject view Author view

Hansong Zhang (zhangh++at++cs.unc.edu)
Thu, 11 Jul 1996 10:37:15 -0400 (EDT)


>
> Hi,
>
>
> I have convert the 3DS loader to C++ API and compiled it.
> But if I try do load a 3ds file, I get a :
> "PF Warning/Assert: pfdFindConverterDSO() - Function "pfdLoadFile_3ds" not
> defined in DSO "/usr/lib/libpfdb/libpf3ds_igl.so"
> PF Warning: pfdLoadFile() - Unable to load file
> crater.3ds because of problem finding pfdLoadFile_3ds"
>
>
> My question is, why does the pfdFindConverterDSO not find the pfdLoadFile_3ds function ?
>
>
>
> Any help will be appreciated !!!
>
>
> - Thanks,
> -Ion
>

It seems to be because when you compile function pfdLoadFile_3ds()
with CC, the fuction name is appended with a C++ signature so it's
no longer named pfdLoadFile_3ds (but something like e.g.
pfdLoadFile_3ds__FPc, you may use "elfdump -t objectfile" to see
the modified func name). So pfdFindConverterDSO can't find any function
by the original name. Try using extern "C" { ... } to force off
signatures.

regards,
Hansong

=======================================================================
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:53:10 PDT

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