[osg-users] compile error under windows for osgterrain example and OpenThreads::BlockCount

Tony Horrobin tony.horrobin at btopenworld.com
Sat Jul 21 06:45:48 PDT 2007


Hi Robert,

I tried compiling under Windows XP, visual studio 2005 express edition 
from SVN this morning and got a couple of errors.
The first relates to use of usleep() in osgterrain.cpp, which I changed 
to OpenThreads::Thread::microSleep()

The second complains because the compiler-generated copy constructor for 
BlockCount tries to call the ones for Mutex and Condition, which are 
declared private.

I declared a private copy constructor in BlockCount too. This caused a 
pretty big recompile and invalidated the wrappers, but seems to solve 
the problem.

The second one affects other platforms too if I'm understanding it right.

Hope this sounds sane - I can make a submission if that would help.

Cheers,

-Tony




More information about the osg-users mailing list