Ubuntu 11.10: GCC / G ++ no vinculará bibliotecas

Fui a compilar un proyecto mío, que usa SDL, SDL_ttf, OpenAL y GTK. Todos los cuales están generando errores como los siguientes:

TxtFunc.cpp:(.text+0x61): undefined reference to `TTF_OpenFont'
TxtFunc.cpp:(.text+0x8c): undefined reference to `TTF_RenderText_Solid'
TxtFunc.cpp:(.text+0xf6): undefined reference to `SDL_UpperBlit'
TxtFunc.cpp:(.text+0x108): undefined reference to `TTF_CloseFont'
TxtFunc.cpp:(.text+0x114): undefined reference to `SDL_FreeSurface'

por cada llamada a la biblioteca. Estoy compilando con las siguientes opciones de enlace:

sdl-config --libs pkg-config gtk+-2.0 --libs pkg-config openal --libs -lalut -lSDL_ttf

Tengo todos estos paquetes instalados y no hay errores de "archivo no encontrado". Solo muchas referencias indefinidas ... No tenía sentido, así que escribí una aplicación de prueba rápida:

#include "SDL/SDL.h"

int main()
{
    SDL_Init(SDL_INIT_VIDEO);
    return 0;
}

y compila así:

g++ `sdl-config --libs --cflags` -o sdl-test ./sdl-test.cpp

He intentado incluso vincular directamente a "/usr/lib/libSDL-1.2.so.0" o "/usr/lib/libSDL.a" en su lugar

todas estas opciones terminan con la misma salida:

/tmp/cc05XT8U.o: In function `main':
sdl-test.cpp:(.text+0xa): undefined reference to `SDL_Init'
collect2: ld returned 1 exit status

¿Alguien tiene ideas

Respuestas a la pregunta(6)

Su respuesta a la pregunta