while writing a code in borland turbo c++ , I included the graphics library graphics.h but it gave the error- BGI graphics not supported under windows.
following was my code

int main()
   int gd = DETECT, gm;


   bar(100, 100, 200, 200);

   return 0;

You must be using a 32-bit version of turbo c++ that borland released a few years ago. If so then your compiler is correct. You can't use those header files with 32-bit compilers.