Dirk Reiners wrote:
>       Hi Patrick,
> 
> On Tue, 2005-09-20 at 16:08 -0500, Patrick Hartling wrote:
> 
>> Nothing is jumping out at me as being missing,
>>though. Is there anything I have to do beyond the use of
>>OSG_SYSTEMLIB_DLLMAPPING to get my functions to be exported properly by
>>OSGSystem{D,}.dll?
> 
> 
> Nope, that should be it. Did you add that to the header and the
> implementation or just the header? It should be in both, but other than
> that it should work.

This turned out to be a pretty silly error on my part. I had blindly assumed
that the code in the generated file OSGAttributeMap.cpp was within the
OpenSG namespace, but it is not. Instead, it has OSG_USING_NAMESPACE. After
adding OSG_BEGIN_NAMESPACE and OSG_END_NAMESPACE in the right places,
everything is working.

Incidentally, I did not have to add OSG_SYSTEMLIB_DLLMAPPING to the function
implementations; having it on the declarations alone is sufficient.

 -Patrick


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to