c sklu wrote:
Hi Don,
There is a problem when building a static library under MSVC(7 or 8) and
linking with the Producer DLL having to do with unresolved symbols
and/or inconsistent dll linkage. By default, the Visual Studio IDE
defines _LIB as a preprocessor when building a static lib. This however
causes the PR_EXPORT and and OPENTHREAD_EXPORT_DIRECTIVE to be defined
to be empty when it really should be __declspec(dllimport).
The way it is done in the OpenSceneGraph Export file looks to be
correct. I think modifying the Producer and OpenThreads headers in this
way shouldn't affect anything else, only if you want to build and link
statically which AFAIK not many people do.
Ahh, the joys of Windows DLL's. I've gone through all of this myself and
arrived at almost exactly the same solution as the OpenSceneGraph one.
I thought this stuff was already fixed?
Are you using the 1.1 release?
--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
"I set the wheels in motion, turn up all the machines, activate the programs,
and run behind the scenes. I set the clouds in motion, turn up light and
sound,
activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/