SDL2 Initialization Error

Hi, I’m running Xubuntu 17.04 I believe, I’ve installed SDL2 via apt-get install libsdl2*

When I try to run a program I wrote when I call function SDL_Init(SDL_INIT_EVERYTHING) it fails, SDL_GetError reports:

Failed loading udev_device_get_action: /usr/lib/x86_64-linux-gnu/ undefined symbol: _udev_device_get_action

I’m not quite sure how to fix it, it seems like it’s a linking error with the library itself maybe. Any help is appreciated.

udev_device_get_action is in libudev-dev , but why didn’t it install that as a dependency… i have really never tried to use * in that way, did it install libsdl2-dev ?

Yes, it install libsdl2-dev as well. I do it that way because I am lazy udev is installed as well as libudev-dev

You may try to compile and run some examples from the SDL2 source, like this one , still the same error?