hello
i m new to develop the gtk application . i m trying to generate threads but unsucessful. i get the error undefine
"G_THREAD_PRIORITY_LOW undefine" when i use "g_thread_create (print_out_func, "low", 0, TRUE, TRUE,
G_THREAD_PRIORITY_LOW, NULL)"
when i give it 1 or 0 as its sixth parameter in place of "G_THREAD_PRIORITY_LOW "
it says "undefined reference to g_thread _init()".
the code is here:
#include <gtk/gtk.h>
#include</usr/include/glib-1.2/glib.h>
int main (int argc, char *argv[])
{
GtkWidget *window;
g_thread_init(NULL);
gtk_init(&argc, &argv);
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
//window = create_window();
gtk_widget_show(window);
gdk_threads_enter();
gtk_main();
gdk_threads_leave();
return(0);
}
tell me how can do this also tell me how to do this using pthread?
thanks in advance
Azra