On 8/12/05, Marcelo Aires Caetano wrote: > Bom dia, > Estou desenvolvendo em SDL, baixei as libs via apt, instalei os pacotes > -dev para poder compilar normalmente > mas quando eu tento compilar aparecem os seguintes erros: > > [EMAIL PROTECTED]:~/game$ gcc -o test test.c > /tmp/ccSi3wfn.o(.text+0x2a): In function `main': > : undefined reference to `SDL_Init' [...] > collect2: ld returned 1 exit status > [EMAIL PROTECTED]:~/game$
Suponho que vocĂȘ tenha que linkar o SDL: $ gcc -o test -lSDL test.c -- Bruno de Oliveira Schneider http://www.dcc.ufla.br/~bruno/