> 29 июля 2015 г., в 10:33, Alexpux <[email protected]> написал(а):
> 
> I have build error using mingw-w64 with GCC-5.2.0.
> 
> [  0%] [  0%] [  0%] Building CXX object 
> src/osg/CMakeFiles/osg.dir/Billboard.obj
> Building CXX object src/osg/CMakeFiles/osg.dir/AudioStream.obj
> Building CXX object src/osg/CMakeFiles/osg.dir/AutoTransform.obj
> In file included from 
> C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.4.0-rc7/include/osg/BufferObject:18:0,
>                 from 
> C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.4.0-rc7/include/osg/Image:17,
>                 from 
> C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.4.0-rc7/include/osg/AudioStream:17,
>                 from 
> C:/repo/mingw-w64-openscenegraph/src/OpenSceneGraph-3.4.0-rc7/src/osg/AudioStream.cpp:14:
> C:/repo/mingw-w64-openscenegraph/src/Release-x86_64-w64-mingw32/include/osg/GL:100:32:
>  error: redeclaration of C++ built-in type 'wchar_t' [-fpermissive]
>         typedef unsigned short wchar_t;
>                                ^
> src/osg/CMakeFiles/osg.dir/build.make:192: recipe for target 
> 'src/osg/CMakeFiles/osg.dir/AudioStream.obj' failed
> make[2]: *** [src/osg/CMakeFiles/osg.dir/AudioStream.obj] Error 1
> make[2]: *** Waiting for unfinished jobs….
> 
> Regards,
> Alexey.

I’m fix it by next patch:

--- OpenSceneGraph-3.4.0-rc7/src/osg/GL.in.orig 2015-07-29 10:38:24.890785100 
+0300
+++ OpenSceneGraph-3.4.0-rc7/src/osg/GL.in      2015-07-29 10:38:31.384135700 
+0300
@@ -96,7 +96,7 @@
     #endif
 
     // XXX This is from Win32's <ctype.h>
-    #if !defined(_WCHAR_T_DEFINED) && !(defined(__GNUC__)&&((__GNUC__ == 
3)||(__GNUC__ == 4)))
+    #if !defined(_WCHAR_T_DEFINED) && !(defined(__GNUC__)&&(__GNUC__ > 2))
         typedef unsigned short wchar_t;
         #define _WCHAR_T_DEFINED
     #endif
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to