cURL / Mailing Lists / curl-library / Single Mail

curl-library

compile curlgtk

From: Rudra Banerjee <bnrj.rudra_at_yahoo.com>
Date: Thu, 24 May 2012 02:39:34 +0530

I am very new to curl (and gtk as well).
I was trying to compile and run curlgtk.c code.
As given in README file, I first tried:
$ `curl-config --cc --cflags --libs` -o curlgtk curlgtk.c
which gives error:
 curlgtk.c:13:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.

After googling, I found a post in arch forum
(https://bbs.archlinux.org/viewtopic.php?id=106212)
which adviced to run the code like
gcc curlgtk.c $(pkg-config --libs --cflags gtk+-2.0 libcurl)
which is giving error like
/usr/bin/ld: /tmp/ccItZyWi.o: undefined reference to symbol
'g_thread_init'
/usr/bin/ld: note: 'g_thread_init' is defined in
DSO /lib64/libgthread-2.0.so.0 so try adding it to the linker command
line
/lib64/libgthread-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

I have installed glib and glib-devel.
But no success.
I am running fedora 17 beta and the curl, libcurl and gtk-devel from
there repo.
Please guide me.
Regards,

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-24