From: <dig...@ya...> - 2001-01-10 13:26:45
|
--- Davi Ferreira <da...@li...> escreveu: > Aí, André, fiz o que você me passou, mas não deu > muito resultado não, > pelo menos eu acho ehehe. Vc esqueceu um comando do gdb ... :-) > --- > > [davi@dewey lc_gtk]$ gdb linuxcall > GNU gdb 5.0 > Copyright 2000 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General > Public License, and you > are > welcome to change it and/or distribute copies of it > under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show > warranty" for > details. > This GDB was configured as "i586-mandrake-linux"... > (gdb) bt > No stack. > (gdb) q > [davi@dewey lc_gtk]$ O certo seria: $ gdb linuxcall gdb> run SEGFAULT gdb> bt gdb> q $ ;-PPP > Quando eu tento compilar dá o seguinte erro: > > --- > > [davi@dewey lc_gtk]$ make clean > rm -f *.o > rm -f linuxcall > [davi@dewey lc_gtk]$ make > cc -g -Wall -O2 -Wunused -Wmissing-prototypes > -Wmissing-declarations > -I/usr/include -I/usr/lib/glib/include > -I/usr/X11R6/include -L/usr/lib > -L/usr/X11R6/lib -c -o interface.o interface.c > cc -g -Wall -O2 -Wunused -Wmissing-prototypes > -Wmissing-declarations > -I/usr/include -I/usr/lib/glib/include > -I/usr/X11R6/include -L/usr/lib > -L/usr/X11R6/lib -c -o work.o work.c > gcc -g -Wall -O2 -Wunused -Wmissing-prototypes > -Wmissing-declarations > -I/usr/include -I/usr/lib/glib/include > -I/usr/X11R6/include -L/usr/lib > -L/usr/X11R6/lib -lgtk -lgdk -lglib -lX11 -lImlib > -lart_lgpl work.o > interface.o -o linuxcall > /usr/bin/ld: cannot find -lX11 > collect2: ld returned 1 exit status > make: ** [linuxcall] Erro 1 > [davi@dewey lc_gtk]$ Estranho mesmo cara ... esse -lX11 é padrão em programas gráficos (XSTEP, QT, GTK, etc) e é muito estranho vc não ter ela aí ... Provavelmente vc não instalou os pacotes de desenvolvimento do X (XFree86-devel-*) Mas tá massa, valeu aí pelas informações. Se tu puder rodar o gdb de novo, ia ser uma boa ... :) []'s André Casteliano __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ |