On 12/14/2009 09:37 AM, Simon Hammett wrote:
> 2009/12/14 Wouter Boelen <[email protected] <mailto:[email protected]>>
> 
>     Hi,
> 
>     I just got the dubious honour of becoming the poor sap who has to
>     test the viability of using OSG in an existing project. Trouble is,
>     it's been written in Borland C++ builder (and uses VCL,...). And the
>     OSG source isn't fully compatible with its quirks. To make matters
>     worse, Borland uses a different binary format than Visual Studio
>     (which we use on newer projects).
> 
>     Anyway, I guessed the first step would be to build the entire OSG
>     library with C++ Builder 2007 (generated a makefile for the 2.9.5
>     source). For the past couple of hours I've been "correcting" minor
>     build errors, but this one seems to demand some more knowledge of
>     the source:
> 
> 
> Ugh.
> 
> Code:
> 
>     Error E2451
>     
> C:\Source\Libraries\OpenSceneGraph-2.9.5_BORLAND\src\osg\GraphicsContext.cpp
>     624: Undefined symbol 'iterator
>     ' in function GraphicsContext::remove(Operation *)
> 
> 
> Try adding:
> typedef std::list< osg::ref_ptr<Operation> >::iterator iterator;
> 
> to the public part of 'class OperationQueue' in
> 
> C:\Development\OpenSceneGraph-2.8.2\include\osg\OperationThread
Unfortunately, that's not the OperationQueue used in GraphicsContext.
In <include/GraphicsContext>, in the definition of GraphicsContext,
there's 
        typedef std::list< ref_ptr<Operation> > OperationQueue;
> 
> Looking at the code I'm surprised it compiles in any other compiler.
> Borland is correct; there is no OperationQueue::iterator as far as I can
> tell.

Whether or not this is good style, Borland is finding the wrong OperationQueue
(I think).

Tim
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to