Jump to content
  • Advertisement
Sign in to follow this  

Checking SDL Version

This topic is 4192 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everybody! I'm fairly new to SDL programmering and couple of weeks ago I remember reading some function where they checked the compiled version of SDL against the version of SDL running on the local computer. Does anyone know how to do this? I would like to be able to check if the system meets the SDL version requirements and print an error message if it's not the case. Thanks in advance, nto.

Share this post

Link to post
Share on other sites
Finally found something useful:

void printVersion()
SDL_version compileVersion;
printf("Compiled with SDL version: %d.%d.%d\n",

const SDL_version *linkedVersion(SDL_Linked_Version());
printf("Running with SDL version: %d.%d.%d\n",


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!