Hello friends , welcome to our blog. Today i will show you how you can run graphics program.
So firstly you need an IDE( Integrated Development Environment) so for graphics.h library devc++ IDE is best option you can also install codeblock but i will suggest you to install devc++ for graphics program.
Just hit Next, Next ,ok |
Now, after installing it go to the TDM-GCC and select 32 bit release
Now download this zip file and extract it (right click on it and then extract all)
Now copy graphics.h file and go to the path - C:\Program Files (x86)\Dev-Cpp\MinGW64\include
and paste it
Now copy libbgi.a file and go to the path- C:\Program Files (x86)\Dev-Cpp\MinGW64\lib and paste it.
Now we are on last step open your devc++ and click on tools and then compiler option and after that clear all linker command and paste this command
-static-libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
and press ok
Paste above command and save it |
Post a Comment