Build Error: 'FromDIP' is not a member of 'wxWindow'
Posted: Sat Feb 25, 2017 10:16 pm
Greetings:
I hope my question is not so obvious as to embarrass me; I'm sure it is not so difficult as to overly challenge the group members!
Codelite Version 10.0.2 (NOT self compiled)
Windows 10 Home Edition Version 1607 on a Dell Inspiron 13 (i7)
tdm64-gcc-4.9.2-3
wxWidgets 3.1.0 (precompiled, from wxWidgets-3.1-TDM-GCC-4.9.2_amd64.7z)
Following the tutorial at http://codelite.org/LiteEditor/WxCrafterDVCCustomModel:
I get a : error: 'FromDIP' is not a member of 'wxWindow'
Thanks for your help!
I hope my question is not so obvious as to embarrass me; I'm sure it is not so difficult as to overly challenge the group members!
Codelite Version 10.0.2 (NOT self compiled)
Windows 10 Home Edition Version 1607 on a Dell Inspiron 13 (i7)
tdm64-gcc-4.9.2-3
wxWidgets 3.1.0 (precompiled, from wxWidgets-3.1-TDM-GCC-4.9.2_amd64.7z)
Following the tutorial at http://codelite.org/LiteEditor/WxCrafterDVCCustomModel:
I get a : error: 'FromDIP' is not a member of 'wxWindow'
Code: Select all
C:\WINDOWS\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ TestDataViewCtrl - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl'
C:/TDM-GCC-64/bin/g++.exe -c "C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.1/lib/gcc_dll/mswu -IC:/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -std=c++11 -o ./Debug/main.cpp.o -I. -I.
C:/TDM-GCC-64/bin/g++.exe -c "C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.1/lib/gcc_dll/mswu -IC:/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -std=c++11 -o ./Debug/MainFrame.cpp.o -I. -I.
C:/TDM-GCC-64/bin/g++.exe -c "C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.1/lib/gcc_dll/mswu -IC:/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -std=c++11 -o ./Debug/wxcrafter.cpp.o -I. -I.
In file included from C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp:7:0:
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp: In constructor 'MainFrameBaseClass::MainFrameBaseClass(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)':
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.h:36:25:[color=#FF0000] error: 'FromDIP' is not a member of 'wxWindow'[/color]
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp:31:46: note: in expansion of macro 'WXC_FROM_DIP'
boxSizer1->Add(m_mainPanel, 1, wxEXPAND, WXC_FROM_DIP(5));
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.h:36:25:[color=#FF0000] error: 'FromDIP' is not a member of 'wxWindow'[/color]
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp:42:54: note: in expansion of macro 'WXC_FROM_DIP'
boxSizer13->Add(m_dataview15, 1, wxALL|wxEXPAND, WXC_FROM_DIP(5));
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.h:36:25:[color=#FF0000] error: 'FromDIP' is not a member of 'wxWindow'[/color]
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp:44:106: note: in expansion of macro 'WXC_FROM_DIP'
m_dataview15->AppendIconTextColumn(_("Name"), m_dataview15->GetColumnCount(), wxDATAVIEW_CELL_INERT, WXC_FROM_DIP(-2), wxALIGN_LEFT);
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.h:36:25:[color=#FF0000] error: 'FromDIP' is not a member of 'wxWindow'[/color]
#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL)
^
C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl/wxcrafter.cpp:45:109: note: in expansion of macro 'WXC_FROM_DIP'
m_dataview15->AppendTextColumn(_("Description"), m_dataview15->GetColumnCount(), wxDATAVIEW_CELL_INERT, WXC_FROM_DIP(-2), wxALIGN_LEFT);
^
mingw32-make.exe[1]: *** [Debug/wxcrafter.cpp.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
TestDataViewCtrl.mk:116: recipe for target 'Debug/wxcrafter.cpp.o' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/2017FEB/25Sat/wxDataViewCtrl_1118/wxDataViewCtrl/TestDataViewCtrl'
Makefile:4: recipe for target 'All' failed
====5 errors, 5 warnings====
Thanks for your help!