Article View: es.comp.os.linux.programacion
Article #9250Re: [SDL] No consigo compilar un ejemplo!!!
From: Luis Angel Fernández Fernández
Date: Sun, 18 Aug 2002 13:08
Date: Sun, 18 Aug 2002 13:08
37 lines
2379 bytes
2379 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
papez wrote:
> Tengo las bibliotecas de SDL en /usr/include/SDL (RH7.3)
> Y cuando quiero compilar hago:
> # gcc sdlp.c -o sdlp -I/usr/include/SDL
>
> pero me da errores:
>
> /tmp/cc2tfCrA.o: In function `main':
> /tmp/cc2tfCrA.o(.text+0xc): undefined reference to `SDL_Init'
> /tmp/cc2tfCrA.o(.text+0x20): undefined reference to `SDL_GetError'
> /tmp/cc2tfCrA.o(.text+0x4c): undefined reference to `SDL_Quit'
> collect2: ld returned 1 exit status
Te falta 'decirle' las librerias que tiene que enlazar. Puedes hacerlo
adem�s de indicarle los directorios con los includes:
$ gcc sdlp.c -o sdlp `sdl-config --cflags --libs`
Ta llueu
- --
Linux 2.4.18 - AMD Athlon - Linux User #99754
Clave GPG: http://muxin.yi.org/~koxo/
MSN: koxo@hotmail.com || Yahoo! Messenger: laffdez
ICQ: 5881541 || AOL: khoxo
IRC (hispano): KoXo || IRC (DalNet): [KoXo]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9X5xOsrzbHhG/hp8RAifoAJ9oVpDWFp0jkhEvgN9i4YlEMk0chgCgrqgk
6VcLQkzsYTN1omRwp16o7pg=
=w+N1
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<e86oja.2rg.ln@muxin.asturias.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!muxin.asturias.org!nobodyReferences:
<4bce1b6e.0208171439.27f1f235@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,14e9364318cdfe01 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-08-18 07:03:28 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!muxin.asturias.org!nobody From: Luis Angel Fernández Fernández <koxo@wanadoo.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: [SDL] No consigo compilar un ejemplo!!! Date: Sun, 18 Aug 2002 15:08:27 +0200 Organization: Telefonica Data Espagna Lines: 37 Message-ID: <e86oja.2rg.ln@muxin.asturias.org> References: <4bce1b6e.0208171439.27f1f235@posting.google.com> Reply-To: koxo@wanadoo.es NNTP-Posting-Host: 178.red-80-34-249.pooles.rima-tde.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: nsnmpen2-gest.nuria.telefonica-data.net 1029679407 7895 80.34.249.178 (18 Aug 2002 14:03:27 GMT) X-Complaints-To: usenet@nsnmpen2-gest.nuria.telefonica-data.net NNTP-Posting-Date: Sun, 18 Aug 2002 14:03:27 +0000 (UTC) User-Agent: KNode/0.7.1