Hi,
I have download the graphics.h and the libbgi.a files and i gave placed in the path of C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h
and
C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\libbgi.a
when i run the following code it is giving me the error saying that c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/libbgi.a when searching for -lbgi
Linker tells you that your library is incompatible with it. Either build library yourself (if you have access to source code) or look which commiler it was built with and use that one.