- Code: Select all
/home/hhyyrylainen/Projects/newton-fork/applications/demosSandbox/sdkDemos/NewtonDemos.cpp: Jäsenfunktio ”wxMenuBar* NewtonDemos::CreateMainMenu()”:
/home/hhyyrylainen/Projects/newton-fork/applications/demosSandbox/sdkDemos/NewtonDemos.cpp:474:62: virhe: call of overloaded ”wxString(char [256])” is ambiguous
label.Printf (wxT(" hardware mode %s"), wxString(platform));
In the file NewtonDemos.cpp around line 474 I was able to fix it by either changing
- Code: Select all
#ifdef _POSIX_VER
to
- Code: Select all
#ifdef __unix__
Another possible fix is adding:
- Code: Select all
#elif __linux
wxChar wPlatform[256];
mbstowcs (wPlatform, platform, sizeof (platform));
wxString tmp (wPlatform);
label.Printf (wxT(" hardware mode %s"), tmp.c_str());
into the preprocessor conditional block. Which is the preferred way?
I can make a pull request for either one.