Re: [info-performer] pfGetCurLights in Performer 3.0 Windows

New Message Reply Date view Thread view Subject view Author view

From: Guillaume Millet (guillaume.millet++at++oktal.fr)
Date: 01/08/2003 15:39:22


Hello,

When trying to make my own pfGetCurLights function, I saw that there is the same
problem with pfGetCurGState();
I think there is the same problem with all C function of C++ API (pfGetCur* and more).

Greetings

Alexandre Naaman wrote:
> Bonjour Guillaume,
>
>
>>Hello,
>>
>>I'm trying to port an application from IRIX/Linux to Windows that use the function pfGetCurLights.
>>
>>When linking I have the following error:
>>
>>error LNK2001: unresolved external symbol _pfGetCurLights
>>
>>
>>When looking in Performer/pr/pfLight.h (My application is C++) I found the following lines:
>>
>>extern "C" { // EXPORT to CAPI
>>
>>/* ------------------ pfLight Related Functions--------------------- */
>>
>>extern int pfGetCurLights(pfLight *_lights[PF_MAX_LIGHTS]);
>>}
>>
>>
>>There is no DLLEXPORT define in front of declaration, it is why I cant link my application ?
>>If the answer is Yes, I think there is a mistake in Windows version that need correction.
>
>
> You're correct, we should be exporting that function. For the meanwhile I
> suggest you write a function of your own to check the current geostate and
> take a look at what the PFSTATE_LIGHTS attribute is set to (make sure
> it's not null and if not then get the values for lights i=0 to
> i<PF_MAX_LIGHTS .)
>
> Thanks for pointing this little problem out; it will get fixed properly in
> the next minor release.
>
> Sorry for the inconvenience!
>
> A+,
>
> Alex.
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: 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
> -----------------------------------------------------------------------
>
>

-- 
Guillaume Millet
Societe OKTAL
55 Rue Thiers
92100 Boulogne Billancourt
Tel : (+33) 1 46 94 97 80
Fax : (+33) 1 41 41 91 44


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jan 08 2003 - 02:20:02 PST

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