static (2)

Milan Babuskov milanb at panonnet.net
Wed Dec 5 02:31:37 PST 2007


Zorro wrote:
>> I think that you've got 2 versions of wxwidgets on your system, one is
>> unicode (gtk2u) and the other is not, depending on what option you set,
>> gcc use the good or the bad one. check that.
> 
> Yes my normal version is NOT unicode this is unicode.
> But what options I can put in compilations?

I'd rather go and fix the code instead of caring about unicode/ansi version.

>>> prog.cpp: In member function 'virtual bool MyApp::OnInit()':
>>> prog.cpp:46: error: conversion from 'const char [14]' to 'const
>>> wxString' is ambiguous

You probably have something like:

wxFunctionCall("something");

change that to:

wxFunctionCall(wxT("something"));

and it will compile with both Unicode and Ansi build.

You can also try 2.9 which removes this requirement (AFAIU), or read wx 
manual for details.

-- 
Milan Babuskov
http://www.flamerobin.org




More information about the wx-users mailing list