[fixed]COpenGLDriver.cpp:86:30:

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
alexzk
Posts: 1
Joined: Tue Sep 11, 2012 8:53 am

[fixed]COpenGLDriver.cpp:86:30:

Post by alexzk »

COpenGLDriver.cpp:86:30: error: cannot convert 'const char*' to 'const fschar_t* {aka const wchar_t*}' in initialization

This error is shown when unicode names file system is enabled (//#define _IRR_WCHAR_FILESYSTEM). Compiling by gcc 4.7 under Windows.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: COpenGLDriver.cpp:86:30:

Post by hybrid »

Do you mean mingw or native gcc under Windows? This problem is due to a wrong implementation of the __TEXT define or some otherwise missing define. Seems the define exists, but is either doing nothing, or is wrongly configured. Could you please check where the __TEXT define is found in your system include files, and how it is implemented?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: COpenGLDriver.cpp:86:30:

Post by CuteAlien »

Fixed it in svn trunk r4322. Or at least it compiles - unicode and mingw combination might not yet be tested so well. Note that you have to set the define UNICODE as well.
Thanks for reporting.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply