1. Download Dev-Cpp 6.3 version (red logo)
2. Install Dev-Cpp software (version 6.3 is a red logo)
The reference link of the detailed installation process: Tutorial | Dev-C++ download and installation steps Super detailed tutorial is here!
3.EasyX download
Click here to download easyx4mingw_20220901
4. Configure EasyX in Dev-C++
Reference link:
Configure EasyX under CLion, Dev-C++ or Code::Blocks (2022-9-1 update) - CodeBus
4.1 Copy easyx.h and graphics.h under the include folder to the D:\App\TDM-GCC-64\x86_64-w64-mingw32\include\ folder.
4.2 Copy lib64\libeasyx.a to D:\App\TDM-GCC-64\x86_64-w64-mingw32\lib\ folder.
4.3 Set up the link library: tools -> compile options Compiler Options..., and then enter -leasyx in the Linker to complete.
5. Install EasyX in Visual Studio
Double-click the EasyX_20220901.exe file to install it.
6. The code tests whether the graphics library is installed successfully
#include <graphics.h>
#include <conio.h>
int main()
{
initgraph(640, 480);
circle(320, 240, 100);
getch();
closegraph();
return 0;
}
The test results are as follows: Draw a circle with a diameter of 100.