[wxWidgets] Błędy przy kompilacji na Ubuntu

0

Witam, zainstalowałem sobie wxWidgets 2.6 na Ubuntu Linux. Ściągnąłem sobie z doca hello world, które chciałem skompilować - niestety próba zakończyła się błędami: :-[

coldpeer@coldpeer:~/projects/wx$ g++ main.cpp `wx-config --libs` `wx-config --cxxflags` -o x
main.cpp: In member function ?virtual bool MyApp::OnInit()?:
main.cpp:35: error: conversion from ?const char [12]? to ?const wxString? is ambiguous
/usr/include/wx-2.6/wx/string.h:642: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>
main.cpp: In constructor ?MyFrame::MyFrame(const wxString&, const wxPoint&, const wxSize&)?:
main.cpp:46: error: conversion from ?const char [10]? to ?const wxString? is ambiguous
/usr/include/wx-2.6/wx/string.h:642: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>
main.cpp:48: error: conversion from ?const char [6]? to ?const wxString? is ambiguous
/usr/include/wx-2.6/wx/string.h:642: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>
main.cpp:51: error: conversion from ?const char [6]? to ?const wxString? is ambiguous
/usr/include/wx-2.6/wx/string.h:642: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>
main.cpp:56: error: conversion from ?const char [22]? to ?const wxString? is ambiguous
/usr/include/wx-2.6/wx/string.h:642: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:632: note:                 wxString::wxString(int) <near match>

Wiecie co nie tak i jak to rozwiązać? Wszystkie wskazówki cenne :)

Z góry dziękuję za odpowiedzi.
Pozdrawiam

0

Skompilowałeś wxy jako Unicode?

0

jak widac skompilowal, brak po prostu konstruktora wxString::wxString(char*), moze gdyby dodac iconv ?

0

Hmm to co w sumie mam zrobić?

// Jakby co, wxy instalowałem z apta

0

albo przekompilowac wxy tak aby obslugiwaly 8bitowe kodowanie, albo obejrzec kosntruktory z /usr/include/wx-2.6/wx/string.h i zamiast char* uzywac typu dla ktorego konstruktor istnieje.

1 użytkowników online, w tym zalogowanych: 0, gości: 1