Re: [gtkmm] glib::thread_init() segfault at startup [solved]



Gene Ruebsamen <gene erachampion com> writes:

>> My issue is I get a segfault as soon as I call Glib::thread_init(). I do believe
>> I am passing the correct libs and cflags to g++, as I used:
>> pkg-config gtkmm-2.0 --cflags --libs gthread
>
> Solved my own question!
>
> The correct string for pkg-config is:
>
> pkg-config gtkmm-2.0 gthread-2.0 --cflags --libs
>
> Using this string with g++ works.  I think there should be a note about this
> somewhere in the gtkmm documentation.

It's there:

http://gtkmm.org/gtkmm2/docs/reference/html/group__Threads.html#a0



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