static lib creating with VCPP Express 2008

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Develop3D
Posts: 1
Joined: Sat Feb 23, 2019 8:11 pm

static lib creating with VCPP Express 2008

Post by Develop3D »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: static lib creating with VCPP Express 2008

Post by CuteAlien »

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.
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