Code: Select all
error : ‘class wxString’ has no member named ‘ToStdWString’
Code: Select all
../configure --enable-cxx11 --enable-stl --disable-shared --enable-utf8 --enable-xlocale --enable-html --with-gtk=3 --with-regex --enable-intl --enable-unicode
any help would be greatly appreciated
eta here is my command line
Code: Select all
g++ -c -x c++ /home/dev/projects/linuxscratchpad/main.cpp -I "/usr/local/include/wx-3.1" -I "/usr/local/lib/wx/include/gtk3-unicode-static-3.1/" -I /home/dev/projects/linuxscratchpad -I "/usr/include/glib-2.0" -I "/usr/lib/x86_64-linux-gnu/glib-2.0/include/" -I "/usr/local/lib/wx/include/gtk3-unicode-static-3.1" -I "/usr/local/include/wx-3.1" -g2 -gdwarf-2 -o "/home/dev/projects/linuxscratchpad/obj/x64/Debug/main.o" -Wall -Wswitch -W"no-deprecated-declarations" -W"empty-body" -Wconversion -W"return-type" -Wparentheses -W"no-format" -Wuninitialized -W"unreachable-code" -W"unused-function" -W"unused-value" -W"unused-variable" -O0 -fno-strict-aliasing -fno-omit-frame-pointer -D__WXGTK__ -D_UNICODE -D_FILE_OFFSET_BITS=64 -fthreadsafe-statics -fexceptions -frtti -std=c++11
Code: Select all
#include <wx/wx.h>
#include <wx/string.h>
#include <wx/arrstr.h>
#include <stdio.h>
#include <string>
int main()
{
printf("hello from linuxscratchpad!\n");
wxString wxteststr("this is a test");
std::wstring test = wxteststr.ToStdWString();
printf("done\n");
return 0;
}