[Glade-users] Adding headers for threads in glade-2



GLib Reference Manual


Threads

Threads � thread abstraction; including threads, different mutexes, conditions
and thread private data.

Synopsis



#include <glib.h>


-- All you need is the above heeader.

  Make sure you pass the right path to the compiler. You can avaoid headaches
by using pkg-config --cflags --libs glib-2.0


Hope this helps.

Harring
--- Jim Deas <jdeas jadsystems com> wrote:
I am trying to add glib routines to main.c to
run a mult-threaded app.
I see where glib-2.0 is in the dep files but
adding the line

#include <glib-2.0/glib.h>

does not see to get me all the valid files.
I am at a loss on the dependencies and header.

How would I add the header and recompile the
Makefiles so I could use the following functions
in main.c
----------------------------
g_thread_init(NULL)
gdk_threads_init()
-------------------------

Regards,
J. Deas

_______________________________________________
Glade-users maillist  -  Glade-users lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-users


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com




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