In both winbgim.h and graphics.h edit line 302 change int right=0 to int top=0. In the editor under compiler settings > linker settings click the Add button select libbgi.a as explained above.