Society & Culture & Entertainment Hobbies & Science

How to Make an SDL Project in Code Blocks

    • 1). Open your Web browser and navigate to SDL's official website. Navigate to the "Download" section, select "SDL 1.2" and download the "SDL-devel-1.2.14-mingw32.tar.gz" archive. Save the file to your hard disk drive.

    • 2). Extract the archive anywhere on your hard disk drive by using a tool such as WinRAR. Navigate to the extracted files and copy the "SDL.dll" file to your compiler's bin directory. The default compiler is located at "C:\Mingw\bin." The compiler must find the DLL file at runtime.

    • 3). Go to the "lib" folder and copy all its contents to your compiler's "lib" folder. The default compiler's "lib" folder is located at "C:\MinGW\lib." This provides the compiler, used by Code Blocks, with all of SDL's libraries, allowing it to understand and compile your code.

    • 4). Copy the "SDL" folder, found in the "include" folder, to the compiler's "include" directory. The default compiler's "include" folder is located at "C:\MinGW\include."

    • 5). Copy the "SDL.dll" file to "C:\Windows" to avoid copying it to each individual project's directory.

    • 6). Open Code Blocks, go to "New Project" and select the "SDL Project" template to create a new SDL project. You can now create an SDL application in Code Blocks and compile it by using the default compiler.

Related posts "Society & Culture & Entertainment : Hobbies & Science"

How to Calculate Your Payment to PayPal

Hobbies & Science

How is a Neutron Star Formed?

Hobbies & Science

How to Store Old Paper Money

Hobbies & Science

How Do Typhoons Differ From Other Tropical Storms?

Hobbies & Science

How to Make a 220-Volt Extension Cord

Hobbies & Science

How to Carve Foam Rubber

Hobbies & Science

How to Embroider a Skirt

Hobbies & Science

Elevation of Pine Rocklands

Hobbies & Science

How to Graph Inverses in Trigonometry

Hobbies & Science

Leave a Comment