Hi there,
i am trying to build irrlicht as a static lib on windows7 to be able to step through with the debugger.
I have got pretty everything working except this:
c:\0_arbeiten\bausteine\irrlicht-1.8.4\source\irrlicht\copengldriver.cpp(92) : error C2440: 'initializing' : cannot convert from 'const wchar_t [18]' to 'const irr::fschar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
and
c:\0_arbeiten\bausteine\irrlicht-1.8.4\source\irrlicht\cirrdevicewin32.cpp(943) : error C2440: 'initializing' : cannot convert from 'const wchar_t [16]' to 'const irr::fschar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
So it seems like "only" a char conversion problem left over, but i could not find a clue yet.
anybody any idea?
Thanks in advance
Peter
static lib creating with VCPP Express 2008
Re: static lib creating with VCPP Express 2008
Yeah, that's when you compile with Unicode.
So in Visual Studio you like have set: Configuration Properties - General - Character Set - Use Unicode Character Set
It's possible to compile Irrlicht that way, but then you must pass the define _IRR_WCHAR_FILESYSTEM (either change in IrrCompileConfig.h or pass the define from the project files for Irrlicht and your own project).
Alternatively - don't compile with UNICODE set.
So in Visual Studio you like have set: Configuration Properties - General - Character Set - Use Unicode Character Set
It's possible to compile Irrlicht that way, but then you must pass the define _IRR_WCHAR_FILESYSTEM (either change in IrrCompileConfig.h or pass the define from the project files for Irrlicht and your own project).
Alternatively - don't compile with UNICODE set.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm