Re: [Linux-programlama] gtk derleme sorunu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Murat DURMAZ (muratd@bilgigis.com)
Date: Mon 18 Apr 2005 - 14:05:20 EEST


gtk2-devel paketi yuklenmemis olabilir mi?

Yucehan Kutlu wrote:

>Evet Ali Vardar ın kitabından çalışmaya
>çalışyorum daha önce debian ve slackware de sorun
>yoktu ÅŸimdiki sistemim suse 9.1 pro(pek proluÄŸu
>kalmadı prof oldu nerdeyse)
>pkgconfig i indirdim ama yine aynı sorun ilgili gtk
>ve gnome paketlerini indirmiştim fakat artık
>kendimden şüphe etmeye başladım gtk.h
>bilgisayarımda olmasına rağmen neden bulamıyor
>anlayamadım
>
>yucehan@linux:~> gcc -o ornek ornek.c `pkg-config
>--libs --cflags gtk+-2.0`
>ornek.c:1:20: gtk\gtk.h: Böyle bir dosya ya da dizin
>yok
>ornek.c: In function `main':
>ornek.c:5: error: `GtkWidget' undeclared (first use in
>this function)
>ornek.c:5: error: (Each undeclared identifier is
>reported only once
>ornek.c:5: error: for each function it appears in.)
>ornek.c:5: error: `window' undeclared (first use in
>this function)
>ornek.c:6: error: `GTK_WINDOW_TOPLEVEL' undeclared
>(first use in this function)
>ornek.c:7: error: `gtk_widget' undeclared (first use
>in this function)
>
>--- Enver ALTIN <ealtin@parkyeri.com> wrote:
>
>
>>On Sun, 2005-04-17 at 05:24 -0700, Yucehan Kutlu
>>wrote:
>>
>>
>>>merhaba
>>>
>>>
>>Merhaba,
>>
>>
>>
>>>�rnek program:
>>>#include<gtk.h>
>>>
>>>int main() {
>>>
>>> GtkWindget *window;
>>> window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
>>> gtk_widget-show(window);
>>> gtk_main();
>>> return 0;
>>>
>>>}
>>>
>>>$gcc -o ornek ornek.c `gtk-config --cflags --libs`
>>>ornek.c:1:16: gtk.h: Böyle bir dosya ya da
>>>
>>>
>dizin
>
>
>>yok
>>
>>
>>>ornek.c: In function `main':
>>>ornek.c:5: error: `GtkWindget' undeclared (first
>>>
>>>
>>use
>>
>>
>>>in this function)
>>>ornek.c:5: error: (Each undeclared identifier is
>>>reported only once
>>>ornek.c:5: error: for each function it appears
>>>
>>>
>>in.)
>>
>>
>>>ornek.c:5: error: `window' undeclared (first use
>>>
>>>
>>in
>>
>>
>>>this function)
>>>ornek.c:6: error: `GTK_WINDOW_TOPLEVEL' undeclared
>>>(first use in this function)
>>>ornek.c:7: error: `gtk_widget' undeclared (first
>>>
>>>
>>use
>>
>>
>>>in this function)
>>>
>>>�eklinde hata alıyorum gtk ve gnome-config
>>>
>>>
>ler
>
>
>>>sistemde kurulu
>>>
>>>
>>Sanırım Ali Vardar'ın Gtk+ kitabından
>>
>>
>denemeler
>
>
>>yapıyorsunuz (Ali biraz
>>zaman ayırıp o kitabı güncellese çok
>>
>>
>iyi
>
>
>>olacak). Gtk+ kütüphanesinin
>>2.0 sürümü 3 yıl kadar önce
>>
>>
>duyuruldu,
>
>
>>"gtk-config" script ile
>>kullanmaya çalı�tı�ınız 1.2
>>
>>
>sürümü artık
>
>
>>pek geli�tirilmiyor ve yakında
>>tarih sayfaları arasına gömülecek.
>>
>>Bence çabanızı 2.0 sürümüne
>>
>>
>yönlendirin,
>
>
>>derlemek için:
>>
>> gcc -o ornek ornek.c `pkg-config --libs
>>--cflags gtk+-2.0`
>>
>>yeterli olacak. Eski "xyzt-config" yerine pkg-config
>>kullanılıyor artık.
>>
>>İyi e�lenceler,
>>--
>>.O.
>>..O Enver ALTIN |
>>http://skyblue.gen.tr/
>>OOO Software developer @ Parkyeri |
>>http://www.parkyeri.com/
>>
>>
>>>_______________________________________________
>>>
>>>
>>Linux-programlama mailing list
>>Linux-programlama@liste.linux.org.tr
>>
>>
>>
>http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Plan great trips with Yahoo! Travel: Now over 17,000 guides!
>http://travel.yahoo.com/p-travelguide
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Linux-programlama mailing list
>Linux-programlama@liste.linux.org.tr
>http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.