Re: main window not redrawing after dialog closes



On 2006-01-26, at 16:55:57 Rob Benton wrote:

> Have you (or anybody else) ever used this Glib::Thread class before?  I 
> tried building one of their examples but I'm missing something:
Hehe probably someone was using it ;-P At least gtkmm developers. 

> rbento rbento1204:gtkmm$ g++ `pkg-config --cflags --libs glibmm-2.4` 
> dispatcher.cc
> /tmp/ccnaD1W0.o(.gnu.linkonce.t._ZN4Glib11thread_initEP17_GThreadFunctions+0xd): 
> In function `Glib::thread_init(_GThreadFunctions*)':
> : undefined reference to `g_thread_init'
> collect2: ld returned 1 exit status

You have to add gthreads to your ldflags in makefile like this:
LDFLAGS+=`pkg-config --libs gtkmm-2.4 gthread`


-- 
Pozdrowienia



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