Deady Online
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Deady Online

Delivering information to the world. You are always welcomed to join!
 
AcasaPortalUltimele imaginiCăutareÎnregistrareConectare

 

 Sdl libraries for devcpp mingw, installation guide

In jos 
AutorMesaj
Oscuridao
Admin



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

sdl libraries for - Sdl libraries for devcpp mingw,  installation guide Empty
MesajSubiect: Sdl libraries for devcpp mingw, installation guide   sdl libraries for - Sdl libraries for devcpp mingw,  installation guide Icon_minitimeSam Mar 19, 2016 6:43 pm

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

Steps:
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: 

-lmingw32
-lSDL2main
-lSDL2

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
https://deady.forumgratuit.ro
 
Sdl libraries for devcpp mingw, installation guide
Sus 
Pagina 1 din 1
 Subiecte similare
-
» How to add c++ 11 support in devcpp mingw, guide
» Sdl libraries linking for codeblocks, installation guide
» Sdl libraries on microsoft visual studio 2010, 2012, 2013, installation guide
» SDL and SDL_mixer version 2.0 libraries for program development in mingw ide compilers (download)
» Glew compilation and runtime errors fixes for all of them, a guide for linking libraries into ide software compiler

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