How to include graphics library? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to include graphics library?

As i asked before that how to include graphics library in codeblocks..I tried the method available on internet but it is also not working can anybody tell how to correct this problem?

25th Mar 2017, 11:34 AM
Avrl Sngh
Avrl Sngh - avatar
2 Answers
+ 14
<graphics.h> has been deprecated. You will have to get yourself an alternate library.
25th Mar 2017, 11:42 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
graphic library is a party of Borland compiler and it doesn't comes with GCC, so if you are trying to use old graphics library with GCC or Mingw you have to link library and then use headers in code. I will strongly suggest you to use opengl instead of old graphics library.
25th Mar 2017, 11:39 AM
Keshave Jat
Keshave Jat - avatar