Deady Online

Delivering information to the world. You are always welcomed to join!

Distribuiţi | 

 Sdl libraries for devcpp mingw, installation guide

In jos 

Mesaje : 352
Data de inscriere : 27/08/2011
Varsta : 24
Localizare : Romania

MesajSubiect: Sdl libraries for devcpp mingw, installation guide   Sam Mar 19, 2016 6:43 pm

This is a guide about how can you install SDL Libraries for DevCpp Mingw.

1. Download SDL Libraries from the Internet or from here.
2. Extract them.
3. Open the DevCpp.
4. Click on Tools -> Compiler Options -> Directories -> Binaries, add there the directory bin from the downloaded SDL.
5.Tools -> Compiler Options -> Directories -> C or C++ Includes, add there the directory include from the downloaded SDL.
6.Tools -> Compiler Options -> Directories -> Libraries, add there the directory lib from the downloaded SDL, and then click ok.
7. Create a new project for using SDL Libraries, and go to Project Options -> Parameters -> Linker -> Add there the following: 


and then click ok, and you're good to go.

If after compilation you receive and error while opening the created executable, just copy from SDL/bin the file named SDL2.dll into your created executable directory, or project directory.

While programming be sure you use: int argv, char** args, as arguments for the main function, otherwise you will encounter compilation error something such us: undefined reference to SDL_main, if your compiler is friendly enough.
int main(int argv, char** args)
     Write here the code.

Also you can try:
SDL Libraries for Microsoft Visual Studio
SDL Libraries for Codeblocks
Sus In jos
Vezi profilul utilizatorului
Sdl libraries for devcpp mingw, installation guide
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Deady Online :: Others :: Altele!-
Mergi direct la: