-1

So i followed instructions from an another question answer in this page about how to install graphics.h And it resulted correctly. But when i included it, it showed me this error message:

C:\Program Files\CodeBlocks\MinGW\include\graphics.h|302|error: redefinition of 'int right'|
C:\Program Files\CodeBlocks\MinGW\include\graphics.h|302|note: 'int right' previously declared here|

Why did this happend? Can you please help me fix this problem?

This is where i got the information from: How to use graphics.h in codeblocks?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Orfeo Terkuci
  • 295
  • 2
  • 18

1 Answers1

1

Did you followed the last resolution provided in the link you have specified?

  1. Open the file graphics.h using either of Sublime Text Editor or Notepad++,from the include folder where you have installed Codeblocks.
  2. Goto line no 302
  3. Delete the line and paste int left=0, int top=0, int right=INT_MAX, int bottom=INT_MAX, in that line.
  4. Save the file and start Coding.
Community
  • 1
  • 1
Vineet Kumar
  • 86
  • 1
  • 7