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++:
Window::Window (string &username) : wxFrame (NULL, mnID_MAIN, wxT("Mnote2"))
wxBoxSizer *szr = new wxBoxSizer(wxVERTICAL);
cerr << username << endl;
this->status = new wxStatusBar(this, -1);
wxString remoteuser = wxT(username.c_str());
wxStaticText *user = new wxStaticText(this, -1, remoteuser);
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??
wxString remoteuser = wxT(test.c_str());