SDL::Version -- SDL Bindings for structure SDL_Version
Core, Structure
use SDL; use SDL::Version; # print compile-time version printf("SDL::version is %d.%d.%d\n", SDL::version->major, SDL::version->minor, SDL::version->patch); # print linked version printf("SDL::linked_version is %d.%d.%d\n", SDL::linked_version->major, SDL::linked_version->minor, SDL::linked_version->patch);
The SDL::Version structure is used by the SDL::linked_version function and the SDL::version macro. The SDL::linked_version function returns the link-time SDL version whereas the SDL::version macro returns the compile-time SDL version.
SDL::Version
SDL::linked_version
SDL::version
Major version number
Minor version number
Patch version number
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.