Functions with very similar names are in library libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.2.0 in package libsdl2-2.0-0.
For examlpe, SDL_RenderCopy but not Renderer, SDL_CreateRGBSurfaceFrom. Check your source.
Peter.
commodorejohn wrote:
- Code: Select all
commodorejohn@devuan:~$ gcc sdltest.c `sdl2-config --cflags --libs` -o sdltest
/tmp/ccCtWq9W.o: In function `main':
sdltest.c:(.text+0x15f): undefined reference to `SDL_CreateRGBSurfaceWithFormat'
sdltest.c:(.text+0x2c2): undefined reference to `SDL_RendererFillRect'
sdltest.c:(.text+0x326): undefined reference to `SDL_RendererCopy'
sdltest.c:(.text+0x341): undefined reference to `SDL_RendererPresent'
collect2: error: ld returned 1 exit status
I really don't understand why this is happening. Any advice on resolving this issue?
sdl2-config --cflags --libs
peter_irich wrote:Functions with very similar names are in library libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.2.0 in package libsdl2-2.0-0.
For examlpe, SDL_RenderCopy but not Renderer, SDL_CreateRGBSurfaceFrom. Check your source.
Users browsing this forum: No registered users and 3 guests