---
name: "SDL_GetVersion"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetVersion"
---

# SDL\_GetVersion(3)

Get the version of SDL that is linked against your program.

## NAME

SDL\_GetVersion - Get the version of SDL that is linked against your program.

## HEADER FILE

Defined in SDL3/SDL\_version.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**int SDL\_GetVersion(void);**

## DESCRIPTION

If you are linking to SDL dynamically, then it is possible that the current version will be different than the version you compiled against. This function returns the current version, while  **SDL\_VERSION**\
  is the version you compiled with.

This function may be called safely at any time, even before

**SDL\_Init** ().

## RETURN VALUE

Returns the version of the linked library.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetRevision**(3)](/SDL_GetRevision/3.md)
