I'm checking out wxwidgets (I'm not sure if my problem has to do with it or not).
The line in red causes this from g++:Code:Window::Window (string &username) : wxFrame (NULL, mnID_MAIN, wxT("Mnote2")) { wxBoxSizer *szr = new wxBoxSizer(wxVERTICAL); SetSizer(szr); cerr << username << endl; this->status = new wxStatusBar(this, -1); szr->Add(this->status); wxString remoteuser = wxT(username.c_str()); wxStaticText *user = new wxStaticText(this, -1, remoteuser); szr->Add(user); }
mainwindow.cpp:15:1: error: ‘Lusername’ was not declared in this scope
What is that? There is no "Lusername" in the file at all. If I comment that line out, compiles fine and the cerr prints out username correctly. If I do this:
I now get 'Ltest was not declared. WTF??Code:string test("hello"); wxString remoteuser = wxT(test.c_str());



1Likes
LinkBack URL
About LinkBacks




