User forums > General (but related to Code::Blocks)
Errors compiling watchesdlg.cpp (CodeBlocks17.12)
Flowers:
I am setting up a new PC with Ubuntu 18.04, wxWidgets 3.1.3 (GTK3) and am trying to build CodeBlocks 17.12. Should I be using an older version of wxWidgets? The installation Wiki uses wxWidgets 2.8 with GTK2, but I run CodeBlocks17.12 on my old PC with wxWidgets 3.0.3 (GTK3) so it seems a backward step to use 2.8.
The problem I am having is compilation errors in watchesdlg.cpp, the first of which is “invalid use of incomplete type ‘class wxPGEditor’ class cbDummyEditor : public wxPGEditor”. Then wxPGWindowList doesn’t name a type, several functions marked ‘override’ do not override, wxPGTextCtrlAndButtonEditor is not declared, wxPGEditorDialogAdapter is incomplete etc.
WxPGEditor seems to be defined in wx/propgrid/editors.h, but I can’t see where editors.h is included. I wonder if someone could help me out please.
sodev:
Next time post the full error messages in code tags, this makes it easier to troubleshoot them.
Did you compile wxWidgets yourself? These messages indicate that wxWidgets is compiled with STL containers enabled (can't remember the exact wording of the feature), these are not enabled by default and CodeBlocks doesn't work with them enabled.
Flowers:
Yes, I did compile wxWidgets myself using –enable-monolithic –withGTK=3 and –prefix= ... I didn’t specify –enable-std_containers or –enable-stl. Presumably I can check whether it got enabled some other way. I'll have another look tomorrow.
stahta01:
If using an CB project to build Code::Blocks, I believe it defaults to gtk2 instead of 3.
And, if yes, which project you are using?
Tim S.
oBFusCATed:
@stahta01, sodev: Please don't feel obliged to post when you have no idea what the problem is. You're only causing confusion.
@Flowers: Most probably 17.12 doesn't work well with gtk3 or wxwidgets 3. Try the trunk code, but keep in mind that the gtk3 build is not tested much/at all, so you might stumble on many problems.
Navigation
[0] Message Index
[#] Next page
Go to full version