31 янв. 2014 г., в 23:18, Robert Osfield <[email protected]> написал(а):
> Hi Alexey, > > Curious that all other platforms haven't issued an warning or error on this, > what compiler are you using? > I’m using mingw-w64 toolchain based on GCC-4.8.2. > To fix the problem I have used a static_cast<const void*>(data()) rather than > a c cast. This compiles and runs under Linux, could you test the modified > Glyph.cpp out. > Attaches Glyph.cpp builded fine. > This change is also checked into svn/trunk and OSG-3.2 branch. > > > On 31 January 2014 18:01, Alexpux <[email protected]> wrote: > Building 3.2.1rc2 with 64-bit mingw-w64 toolchain I get casting error: > > Building CXX object src/osgGA/CMakeFiles/osgGA.dir/GUIEventAdapter.obj > C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.2.1-rc2/src/osgText/Glyph.cpp: > In member function 'void osgText::Glyph::subload() const': > C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.2.1-rc2/src/osgText/Glyph.cpp:531:78: > error: cast from 'const unsigned char*' to 'long unsigned int' loses > precision [-fpermissive] > "\t 0x"<<(unsigned > long)data()<<");"<<dec<<std::endl; > > ^ > [ 19%] Building CXX object src/osgFX/CMakeFiles/osgFX.dir/Outline.obj > > > Regards, > Alexey. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > <Glyph.cpp>_______________________________________________ > 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

