Hi Robert,

I've tried adding an OSGDB_EXPORT macro to the RequestQueue struct but
the error still appeared. I'm a little confused, too, and don't know
if this is an MinGW compiler issue. I'm doing a complete rebuild now
and will report the result later.

Cheers,

Wang Rui


2011/1/20 Robert Osfield <[email protected]>:
> Hi Rui,
>
> Since the definition of the RequestQueue::size() actually exists in
> the .cpp the error looks to be a little misleading.   Could the error
> simply be due to the RequestQueue not being declared with an
> OSGDB_EXPORT?
>
> Robert.
>
> On Thu, Jan 20, 2011 at 4:50 AM, Wang Rui <[email protected]> wrote:
>> Hi Robert,
>>
>> It builds well on my Windows XP and VisualStudio 8/9, both dynamic and
>> static versions. But when compiling with MinGW (gcc version 3.4.5),
>> there is a compile error:
>> ...
>> CMakeFiles\osgViewer.dir\StatsHandler.obj:StatsHandler.cpp:(.text$_ZNK5osgDB13DatabasePager24getDataToCompileListSizeEv[osgDB::DatabasePager::getDataToCompileListSize()
>> const]+0x18): undefined reference to
>> `osgDB::DatabasePager::RequestQueue::size()'
>> ...
>>
>> The problem can be solved by making an inline version of the
>> RequestQueue::size() method (as attached). Another way is to implement
>> the getDataToCompileListSize() method in the cpp file rather than in
>> the header. Which would you prefer? :-)
>>
>> Cheers,
>>
>> Wang Rui
>>
>>
>> 2011/1/19 Robert Osfield <[email protected]>:
>>> Hi All,
>>>
>>> Could you please test the build of OpenSceneGraph svn/trunk and test
>>> it against your own applications.  If you are successful and find
>>> problems post your findings on this thread so we can access how things
>>> are converging.   All going well I'll tag 2.9.11 tomorrow.
>>>
>>> Thanks,
>>> Robert.
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to