Hi Stefan,
My OSG static libs built fine under windows but when I try to use them in my app (swapping them out for the synamic ones) I get linker problems:
This:
__declspec(dllimport)
means that your app still thinks it needs to link to a DLL. Look at the include/osg/Export header, and you'll see that your app needs to define OSG_LIBRARY_STATIC in order not to get those __declspec(dllimport) symbols. You should add those to your app's configuration - in Visual Studio it's Project properties - C/C++ - Preprocessor Definitions. On Linux you could add -DOSG_LIBRARY_STATIC to your CXXFLAGS in your makefile, if that's what you're using to build.
Also check out the osgstaticviewer example as Robert mentioned, you'll see that you need some special declarations in order to be able to use the plugins and other things in a static context.
Note that I've never built OSG statically myself and as a result, have never used it as you're trying to, but those are things I think must be done for it to work. If you have further problems others might be able to help more than me.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org