Step 1: Download the ege package, search "ege official website" on Baidu, as shown in the picture, click on this one.
Step 2: Download ege. Click on this option:
Step 3: After decompressing, you will see the following files:
Open the include directory and copy all the files inside to the directory below:
Then copy the two A files in .\ege20.08_all\EGE20.08\lib\devcpp to the following two directories:
Final configuration:
Open "Compile Options" and see the interface as shown:
Delete -static-libgcc and add all 64-bit ones.
-lgraphics64 -luuid -lmsimg32 -lgdi32 -limm32 -lole32 -loleaut32 -lwinmm -lgdiplus
All 32-bit ones are added
-lgraphics -luuid -lmsimg32 -lgdi32 -limm32 -lole32 -loleaut32 -lwinmm -lgdiplus
Okay, let’s test it with code:
#include <graphics.h>
int main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, "");
rectangle(100, 100, 200, 200);
getch();
closegraph();
return 0;
}
result:
Okay, this issue is over. Thanks for watching, and thanks to csdn for supporting me.