dataviewctrl does not compile under wxGTK

Francesco Montorsi f18m_cpp217828 at yahoo.it
Wed Nov 1 05:21:39 PST 2006


Robert Roebling ha scritto:
> FM> I wanted to try out wxDataViewCtrl under wxGTK but it does not compile.
> 
> Hm, no problem here with GTK 2.2.3.
here with GTK 2.10.6 and latest CVS I get:

./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -Wall 
-Wundef -Wno-ctor-dtor-privacy -g -O0 ../src/gtk/dataview.cpp
../src/gtk/dataview.cpp: In function 'void 
wxgtk_list_store_get_value(GtkTreeModel*, GtkTreeIter*, gint, GValue*)':
../src/gtk/dataview.cpp:309: error: 'm_font' was not declared in this scope
../src/gtk/dataview.cpp: In member function 'virtual bool 
wxDataViewTextRenderer::SetValue(const wxVariant&)':
../src/gtk/dataview.cpp:949: error: 'm_font' was not declared in this scope
../src/gtk/dataview.cpp: In constructor 
'wxDataViewProgressRenderer::wxDataViewProgressRenderer(const wxString&, 
const wxString&, wxDataViewCellMode)':
../src/gtk/dataview.cpp:1224: error: 'm_font' was not declared in this scope
../src/gtk/dataview.cpp: In member function 'virtual bool 
wxDataViewProgressRenderer::SetValue(const wxVariant&)':
../src/gtk/dataview.cpp:1245: error: conversion from 'const wxVariant' 
to 'int' is ambiguous
../include/wx/variant.h:246: note: candidates are: wxVariant::operator 
void*() const <near match>
../include/wx/variant.h:230: note:                 wxVariant::operator 
wxChar() const
../include/wx/variant.h:191: note:                 wxVariant::operator 
bool() const
../include/wx/variant.h:181: note:                 wxVariant::operator 
long int() const
../include/wx/variant.h:170: note:                 wxVariant::operator 
double() const
../src/gtk/dataview.cpp: In member function 'virtual void 
wxDataViewColumn::SetTitle(const wxString&)':
../src/gtk/dataview.cpp:1547: error: 'm_font' was not declared in this scope

This is for a debug+shared+ansi build...

Francesco





More information about the wx-dev mailing list