Build the project by clicking on the Build icon in the toolbar, using the menus Build->Build, or pressing Ctrl+F9.
View the source code for the default SFML project file by expanding the Sources tree and clicking on main.cpp.
In the "SFML project" compiler configuration screen verify the compiler is the GNU GCC Compiler and press the Finish button.
In the "SFML project" path screen set the path to the location you installed SFML ( C:\CodeBlocks\sfml ) and press the Next button.
In the "SFML project" name screen enter a project name where shown and press the Next button.
In the "SFML project" link library screen select Dynamic Link Library as shown and press the Next button.
In the "SFML project" version screen select SFML 2.0 as shown and press the Next button.
In the "SFML project" start screen press the Next button.
Select the "SFML project" wizard by clicking the SFML project icon shown and pressing the Go button.
Run Code::Blocks and click the "Create a new project" link or follow the menus: File -> New -> Project.
We can use these instructions as a starting point for other new projects as well. In this section we create a test project to verify the SFML installation. Creating an SFML Project from the SFML Project Wizard If you are reinstalling Code::Blocks, you may get a message, "Path already in the extra paths list!" If so, click OK and continue.
Press the OK button at the bottom of the dialog.
Press the Add button, find the bin folder of SFML ( C:\CodeBlocks\sfml\bin), and add it without keeping relative paths.
In the left-hand menu, verify Global compiler settings is selected,.
Code blocks compiler setup how to#
How to Install SFML in Code::Blocks for WindowsĬompiler menu to open the Compiler settings dialog.