Search code examples
opengllinkercompiler-errorssdl

Weird sdl opengl linker


Heres one of the errors:

unresolved external symbol _SDL_SetVideoMode referenced in function _SDL_main

This is being linked:

sdl.lib
sdlmain.lib
glu32.lib
opengl32.lib

Im calling both sdl and sdl_opengl


Solution

  • Order does matter when linking sometimes. Link to sdlmain first and then sdl and see if that works.