Здравствуйте, у меня появилась проблема с компиляцией исходника на C++, использующего libSDL.so.
Это обычный helloworld:
#include <SDL/SDL.h>
int main()
{
if ( SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO) < 0 ) {
printf("Unable to init SDL: %s\n", SDL_GetError());
exit(1);
}
return 0;
}
Застревает на строке с SDL_Init. При сборке линкер выдает следующее:
/usr/lib/libSDL.so: undefined reference to `aa_defparams@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_autoinitkbd@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_resizehandler@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_renderpalette@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_resize@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_uninitmouse@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_autoinitmouse@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_getmouse@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_getrenderparams@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_flush@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_parseoptions@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_getevent@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_uninitkbd@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_close@AA_1.4'
/usr/lib/libSDL.so: undefined reference to `aa_autoinit@AA_1.4'
collect2: ld returned 1 exit status
Строка компиляции: g++ -Wall -o "%e" -lSDL -lSDLmain "%f"
Такая ошибка появилась сразу после инсталяции SDL, так как libSDL.so - это ссылка на библиотеку, попробовал пересоздать её, но получил тот же результат.
Есть идеи? Надеюсь на вашу помощь
, третий день с ним мучаюсь.