I've followed the instructions at
http://www.codeincodeblock.com/2011/09/how-to-setup-winbgim-library-in.html
First download WinBGIm from
http://winbgim.codecutter.org/
Extract it.
Copy graphics.h and winbgim.h files in include folder of your compiler directory
Copy libbgi.a to lib folder of your compiler directory
In code::blocks open Settings >> Compiler and debugger >>linker settings
click Add button in link libraries part and browse and select libbgi.a file
In right part (ie. other linker options) paste commands
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
click Ok
Then copied a demo programme from
http://www.programmingsimplified.com/c/graphics.h#programs
When I try to compile it I get the following errors in graphics.h
302 error; redefinition of 'int right'
302 error; 'int right' previously declared here
in function 'int Main()':
8 warning deprecated conversion from string constant to 'char*' [-Wwrite-strings]
It looks to me as tho line 302 which now reads
int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX,
should be
int left=0, int top=0, int right=INT_MAX, int bottom=INT_MAX,
but codeblocks won't let me change it
Sorry to be so useless but it's many years since I did any of this stuff and it makes my old head hurt. Got to do something to keep the grey cells active though. Can anyone help