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

#include<graphics.h>
#include<conio.h>
int main()
{
   int gd = DETECT, gm;

   initgraph(&gd,&gm,"C:\\TC\\BGI");

   bar(100, 100, 200, 200);

   getch();
   closegraph();
   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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.