Hi,
I have configured codeblocks with wxwidgets and works but i try to make an application in mode console dont work... what's going on wrong?
Code:#include <iostream> #include <wx/string.h> #include <wx/utils.h> using namespace std; int main() { cout << "Hello world!" << endl; wxString str1 = wxT("Linux"); wxString str2 = wxT("Operating"); wxString str3 = wxT("System"); wxString str; str = str1 + wxT(" ") + str2 + wxT(" ") + str3; wxPuts(str); wxPrintf(wxGetHomeDir()); long mem = wxGetFreeMemory().ToLong(); wxPrintf(wxT("Memory: %ld\n"), mem); return 0; }




Reply With Quote
