Re: Gtkmm thread example



Christopher Lang wrote:
this is a similar but IMHO better example:

http://www.c-plusplus.de/forum/viewtopic-var-p-is-816067.html

(unfortunately some comments in German, but the code is quite readable)
Too bad the only German I know is from songs.  I looked at the code and see
that there are three examples.  The first two use boost  which I don't have.
I visited the boost website and found that MinGW isn't on the supported
compiler list.  I see the third example is written by the same person who
wrote
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/thread_2dispatcher_8cc-example.html#a17
This one looks like it would be a great example because it appears to be a
gtk progress bar version of the glib example.  I tried compiling the third
example and it won't compile

$ g++ -o dispatch2.exe dispatch2.cpp `pkg-config --cflags --libs sigc++-2.0 glibmm-2.4 gtkmm-2.4`

dispatch2.cpp: In constructor `<unnamed>::ThreadProgress::ThreadProgress()':
dispatch2.cpp:68: error: no matching function for call to `slot(<unnamed>::ThreadProgress&, void (<unnamed>::ThreadProgress::*)())'
dispatch2.cpp: In constructor `<unnamed>::MainWindow::MainWindow()':
dispatch2.cpp:133: error: `bind' is not a member of `SigC'
dispatch2.cpp:133: error: no matching function for call to `slot(<unnamed>::MainWindow&, void (<unnamed>::MainWindow::*)(<unnamed>::ThreadProgress*))' dispatch2.cpp:144: error: no matching function for call to `slot(<unnamed>::MainWindow&, void (Gtk::Widget::*)())'
dispatch2.cpp: In function `int main(int, char**)':
dispatch2.cpp:188: error: `bind_return' is not a member of `SigC'
dispatch2.cpp:188: error: no matching function for call to `slot(<unnamed>::MainWindow&, void (<unnamed>::MainWindow::*)())'


Damon Register


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