From: Alexandre Naaman (naaman++at++laplace.engr.sgi.com)
Date: 01/07/2003 14:17:09
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.
This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 14:17:16 PST