![]() Now go to "Linker Setting" tab and inside "Other linker options" text box add three linkers "-lmingw32", "-lSDL2main" and "-lSDL2".c:\SDL2\include) and under "Linker" tab provide the path of SDL lib folder (e.g. Under "Compiler" tab provide the path of SDL include folder (e.g. Another dialogue box will appear and click the "Search directories" tab. A dialogue box will appear and click "Project's build options". Go to menu bar and select project-> Project properties.Also, do not forget to add main.cpp file. ![]() From the project wizard select "empty project" and click "Go" button and provide all necessary information.Open the code::blocks and go to File -> New -> Project or click create a new project link from the start page.Also, copy SDL.dll file from bin folder to "C:\Windows\System32" if you are using 32-bit library files or copy to "C:\Windows\System" if you are using 64-bit library files. Copy "include" and " lib" folders and paste it inside the directory that you have created in step 2. Create a folder in any directory and give a name "SDL 2" (eg.Steps to create SDL 2 project in Code::blocks:
0 Comments
Leave a Reply. |