compile gtk with libcurl

2012-05-24 Thread Rudra Banerjee
Friends, Please check the program: #include stdio.h #include gtk/gtk.h #include gdk/gdk.h #include curl/curl.h GtkWidget *Bar; size_t my_write_func(void *ptr, size_t size, size_t nmemb, FILE *stream) { return fwrite(ptr, size, nmemb, stream); } size_t my_read_func(void *ptr, size_t size,

Re: compile gtk with libcurl

2012-05-24 Thread David Nečas
On Thu, May 24, 2012 at 10:37:01PM +0530, Rudra Banerjee wrote: $ gcc curlgtk.c -o cpan `pkg-config --cflags gtk+-2.0` `pkg-config --libs libcurl gtk+-2.0` /usr/bin/ld: /tmp/ccZN7P8Q.o: undefined reference to symbol 'g_thread_init' If you use gthread you must link with it. Simple. Use

Re: compile gtk with libcurl

2012-05-24 Thread Rudra Banerjee
Thanks ... its working! On Thu, 2012-05-24 at 19:19 +0200, David Nečas wrote: On Thu, May 24, 2012 at 10:37:01PM +0530, Rudra Banerjee wrote: $ gcc curlgtk.c -o cpan `pkg-config --cflags gtk+-2.0` `pkg-config --libs libcurl gtk+-2.0` /usr/bin/ld: /tmp/ccZN7P8Q.o: undefined reference to