This project is maintained by abrarShariar
View On Github

How to set up SFML

This tutorial explains step-by-step procedure to configure SFML (Simple Fast Multimedia Library) with Code::Blocks IDE . You must follow these steps sequentially before running the sofware. The graphical elements used in C++ Phone is based on SFML.



Step 1:

First, you must download the SFML SDK version 2.1 . Choose the download options according to your OS . For Windows users and running Code::Blocks choose for 32 bit GCC 4.7 TDM (SJLJ) - 32-bit as download option and for 64 bit GCC 4.7 TDM (SJLJ) - 64-bit


Step 2:

Open Code::Blocks
Go to Settings. Now choose Compiler Settings from the dropdown.
The following window will pop-up initially




Step 3:

Choose #defines
Now add SFML_STATIC as show below




Step 4:

Now select Linker Settings
Now in the Link Libraries Add the following (the sequence must be maintained)

  • sfml-graphics-s-d
  • sfml-window-s-d
  • sfml-audio-s-d
  • sfml-system-s-d



  • Step 5:

    Select Search directories
    Now choose Compiler and Add sfml-install-path/include as follows:




    Step 6:

    In Search directories choose Linker and Add sfml-install-path/lib as follows:





    Step 7:

    Press OK

    You Are Ready To Use SFML !!