You are not logged in.

#1 2013-10-26 18:39:24

Kerrex
Member
Registered: 2013-07-19
Posts: 7

G++ can't compile any SDL2 thing after SDL2 upgrade.

Hello,
recently (today, I believe), I've upgraded my system via pacman, which has also installed newest version of SDL2. Unfortunately something has been broken, because I can't compile anything sad
Here's the terminal output:
tomek@localhost:~$ g++ cos.cpp -lSDL2
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Quit'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Poll'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_AddCallback'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Init'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Scan'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_DelCallback'
collect2: error: ld returned 1 exit status

I'm neither expert Linux user nor programmer, I'm just trying to write Snake for fun, so I would appreciate your help big_smile

Kerrex

Offline

#2 2013-10-26 18:41:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: G++ can't compile any SDL2 thing after SDL2 upgrade.

Which sdl2 version are you using?
https://bugs.archlinux.org/task/37484

Offline

Board footer

Powered by FluxBB