How to build ANSI application with wxWidgets from HEAD

Riccardo Cohen rcohen at articque.com
Thu Nov 22 04:43:55 PST 2007


I've built wx2,9 on windows, mac, linux in both ansi and unicode and had 
no problem.

this is my command on windows :

nmake -f makefile.vc BUILD=debug UNICODE=0 SHARED=0 MONOLITHIC=1 
USE_OPENGL=1 RUNTIME_LIBS=static

But my svn download is from 2 months ago...

Kolya wrote:
> Hi All!
> 
> (Env: wx rev 50112, msvc 7.1, xp sp2)
> 
> I need to build wxWidgets 2.9 with my ANSI application, but it seems
> that wx library forces define of _UNICODE macro even for ANSI builds.
> For example following code fails in samples/minimal/minimal.cpp
> 
> + #ifdef _UNICODE
> + #error UNICODE not supported
> + #endif
> 
> with build parameters:
> nmake -f makefile.vc UNICODE=0 clean all
> 
> Compiler output:
> 
> cl /c /nologo /TP /Fovc_mswd\minimal_minimal.obj /MDd /DWIN32  /Zi
> /Fdvc_mswd\minimal.pdb /D_DEBUG  /Od  /D__WXMSW__   /D__WXDEBUG__
>    /I.\..\..\lib\vc_lib\mswd /I.\..\..\include /W4 /I.   /D_WINDOWS
> /I.\..\..\samples /DNOPCH /GR /EHsc    .\minimal.cpp
> minimal.cpp
> minimal.cpp(44) : fatal error C1189: #error :  UNICODE not supported
> 
> What I need to do to make this build?
> 
> Thanks,
> Kolya Kosenko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 

-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49




More information about the wx-users mailing list