a day ago I installed the SDL2 library. This is not yet in Debian Wheezy, so I used the configure, make, make install commands.
In the end, when I try to use SDL_Texture, I get this error:
error: forward declaration of 'SDL_Texture {aka struct SDL_Texture}' invalid use of incomplete type 'SDL_Texture {aka struct SDL_Texture}'
After searching for the ad, all I found was two lines in SDL_render.h:
struct SDL_Texture; typedef struct SDL_Texture SDL_Texture;
No definition at all. I think my SDL_sysrender.h file is missing from my installation. This is in the source code that I downloaded, but not in the SDL2 include path.
Where should the problem be? Do I need to use any flag for the configuration file? Thank you for your help.
c ++ linux debian sdl-2
Lorin
source share