Jump to content
  • Advertisement
Sign in to follow this  

Checking SDL Version

This topic is 4106 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!