graphics.h download
libbgi.h download
How do I use Borland Graphics Interface (graphics.h)?
For those of you migrating from Borland, you may be wondering where graphics.h is. Unfortunately, graphics.h is a Borland specific library and cannot be used with Dev-C++. Fortunately, a benevolent soul by the name of Michael Main has modified a BGI emulation library for Windows applications to be used under MinGW (and therefore Dev-C++) which he has aptly named WinBGIm.
The files we need are:
graphics.h
(download to C:Dev-Cppinclude)
libbgi.a
(download to C:Dev-Cpplib)
After you have downloaded the files to the correct locations, you can now use WinBGIm’s graphic.h as you would Borland’s graphics.h with a few caveats.
Using library files:
First, you have to tell Dev-C++ where to find the library functions that WinBGIm references–this is done in the “Project Options” dialog box.
Here are instructions on how to do this with a new project:
• Go to “Project” menu and choose “Project Options” (or just press ALT+P).
• Go to the “Parameters” tab
• In the “Linker” field, enter the following text:
-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32
Project Options -> Parameters:
• Click “OK”.

May 28, 2013 Author Topic: SFML and Dev-C (Read 6303 times) 0 Members and 1 Guest are viewing this topic. LV7 Elite (Next: 700). You don't need to include SFML/Window.hpp, as Graphics.hpp already does that for you. For your linker errors, you'll need to add lsfml-system, lsfml-window, and lsfml-graphics to your linker settings.
Test code:
Sfml Graphics.hpp Dev C 5
Just to make sure you’ve got everything set up correctly, try this test code in a new Dev-C++ WinBGIm project:
 #include 
 int main()
 {
 initwindow(400,300); //open a 400×300 graphics window
 moveto(0,0);
 lineto(50,50);
 while(!kbhit()); //wait for user to press a key
 closegraph(); //close graphics window
 return 0;
 }

or
Sfml Graphics Hpp
#include
 int main()
 {
 initwindow(800,600); //open a 800×600 graphics window
 moveto(0,0);
 lineto(50,50);
 rectangle(50,50,150,150);
 circle(200,200,100);
 while(!kbhit()); //wait for user to press a key
 closegraph(); //close graphics window
 return 0;
 }
Grow your team on GitHub
GitHub is home to over 40 million developers working together. Join them to grow your own development teams, manage permissions, and collaborate on projects.
C++ Sfml Tutorial
Sign up
Repositories
Sfml/graphics.hpp Download For Dev C++
- SFML- Simple and Fast Multimedia Library C++ 1,167 5,827 74 41 Updated- Apr 15, 2020 
- SFML.Net- Official binding of SFML for .Net languages C# 67 291 2 1 Updated- Mar 22, 2020 
- SFML-Website- Repository for the SFML website. PHP 23 16 13 (4 issues need help) 4 Updated- Mar 1, 2020 
- SFML-Game-Development-Book- Full and up-to-date source code of the chapters of the 'SFML Game Development' book C++ 183 528 6 0 Updated- Sep 27, 2015