[10476] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Help gtk+-1.0.1 !!!!

daemon@ATHENA.MIT.EDU (Marcus Brito)
Thu Nov 26 19:25:34 1998

Date: Thu, 26 Nov 1998 22:15:42 -0200
From: Marcus Brito <pazu@linuxbr.com.br>
To: gtk-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981126075000.27042A-100000@csd.uo.edu.cu>; from Yoel Benitez Fonseca on Thu, Nov 26, 1998 at 07:58:18AM -0500
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

>  No soy muy ducho en ingles y espero que alguno de Uds. entienda el
> espa=F1ol, soy nuevo en la lista y tambien en el mundo de GTK.

Entiendo um poco de espa=F1ol, mas falo portugues. Espero que me entiendas =
:)

>  Mi problema es el siguiente:
>  Tengo gtk+-1.0.1, pero cuando compilo el siguiente programa ejemplo
> recivo un error que no comprendo:

> [mark@csd c++]$ g++ pru.cc
> /tmp/cca271821.o: In function `main':
> /tmp/cca271821.o(.text+0xf): undefined reference to `gtk_init'
> /tmp/cca271821.o(.text+0x19): undefined reference to `gtk_window_new'
> /tmp/cca271821.o(.text+0x2a): undefined reference to `gtk_widget_show'
> /tmp/cca271821.o(.text+0x32): undefined reference to `gtk_main'

Precisas informar a el compilador para usar a biblioteca gtk, assim:

g++ -lgtk pru.cc

Espero ter ajudado!
--=20
Ja ne,
   Marcus `Pazu' Brito
   Mailto: pazu@linuxbr.com.br

GNU Kenobi said: May the source be with you, Luke!

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: zzfUgDyBsAwR97u26wC7aaCVD7Q015Be

iQA/AwUBNl3vLJg/WVXo+wdaEQIAegCfbQIivyhm+LjxIxHwoGdMjmXiI7cAn3e6
ePI27ctasEzGsKWKk1ZP0/N/
=1G/B
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post