[osg-submissions] osgconv --compressed not working under MSVC

Luigi Calori l.calori at cineca.it
Fri Aug 24 02:48:55 PDT 2007


Robert Osfield wrote:

>Hi Luigi,
>
>This problem suggest that the auto registration of of the
>GraphicsWindowWin32 is not working, could it be that Windows is
>ignoring the linking of osgViewer until a symbol from it is used in an
>application?
>  
>
I do not know... I' m not a Windows expert, I found this hack by looking 
at the osgdem code that had the same behaviour

>Adding osgViewer::Viewer viewer to osgconv (or osgdem for that matter)
>is really the wrong way to go about getting the compiler to properly
>link to osgViewer.  If we have to pull in something it really should
>at least be something relevant to the app.  I wonder if just including
>a header would be enough?
>  
>

if I comment out 606 line
//osgViewer::Viewer viewer;

the error shows up

just including header does not seem enough

I do not know if there are other better ways to accomplish the same fix, 
if you give me hints I can test

Thanks
               Luigi



More information about the osg-submissions mailing list