flat assembler
Message board for the users of flat assembler.

Index > Linux > GTK samples not work to me

Author
Thread Post new topic Reply to topic
flash



Joined: 11 Mar 2006
Posts: 55
Location: Cuba
flash
Hello again:
I 'am trying to compile the GTK samples of the site but the following occurs:

linx:~/gtk-examples/gtk-window # make
fasm window.asm window.o
flat assembler version 1.67.14 (16384 kilobytes memory)
2 passes, 609 bytes.
gcc -Wall -s -O3 window.o -o window `gtk-config --cflags` `gtk-config --libs`
/bin/sh: gtk-config: command not found
/bin/sh: gtk-config: command not found
window.o: In function `main':
: undefined reference to `gtk_init'
window.o: In function `main':
: undefined reference to `gtk_window_new'
window.o: In function `main':
: undefined reference to `gtk_widget_show'
window.o: In function `main':
: undefined reference to `gtk_main'
collect2: ld returned 1 exit status
make: *** [window] Error 1

I do not understand because I have Instaled Anjuta and Glade and works perfectly. Can somebody tell me what happens?. Thanks from now
Luis Enrique

_________________
i don't hate goto
Post 12 Nov 2006, 02:54
View user's profile Send private message Reply with quote
arafel



Joined: 29 Aug 2006
Posts: 131
Location: Jerusalem, Israel
arafel
you need to install gtk development library
Post 12 Nov 2006, 14:54
View user's profile Send private message Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov
more from functions you will find into usr/lib/libgtk-x11-2.0.so.0 (in ubuntu 6+)
compile with: cc window.o /usr/lib/libgtk-x11-2.0.so.0 -o window -Xlinker "-s"
Post 02 Dec 2006, 21:07
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.