Re: problem building a FileChooser dialog

On 06/05/2012 21:12, jody wrote:
> Hi
> I followed the example given in
> for making a FileChooser Dialog.

You're referring to the documentation for gtkmm 3.4...

> However, my compiler complains:
> IQWin.cpp: In member function 'virtual void IQWin::on_button_load_clicked()':
> IQWin.cpp:219: error: 'create' is not a member of 'Gtk::FileFilter'
> IQWin.cpp:222: error: no matching function for call to
> 'Gtk::FileChooserDialog::add_filter(Glib::RefPtr<Gtk::FileFilter>&)'
> /usr/include/gtkmm-2.4/gtkmm/filechooser.h:910: note: candidates are:
> void Gtk::FileChooser::add_filter(const Gtk::FileFilter&)

...but compiling against gtkmm 2.4.

Try compiling against the newer Gtkmm instead:
$ g++ `pkg-config --cflags --libs gtkmm-3.0`

Kind regards,
Loong Jin

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]