c++ - graphics.h - installed it, why still error? -


so followed instructions question answer in page how install graphics.h , resulted correctly. when included it, showed me 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' declared here| 

why did happend? can please me fix problem?

this got information from: how use graphics.h in codeblocks?

did followed last resolution provided in link have specified?

  1. open file graphics.h using either of sublime text editor or notepad++,from include folder have installed codeblocks.
  2. goto line no 302
  3. delete line , paste int left=0, int top=0, int right=int_max, int bottom=int_max, in line.
  4. save file , start coding.

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -