title: BGI error, How to Resolve it?
body: <p>I want to run a C program that draws a circle. The program is compiling with no error and it is running. After getting the values like radius from the user, I get the error like this : </p>
  
  <p><code>BGI error: Graphics not initialized ( use "initgraph")</code></p>
  
  <p>Even though in my source code I have added this line : </p>
  
  <pre><code>int gmode,gdrive=DETECT;
  initgraph(&amp;gdrive,&amp;gmode,"c\\tc\\bgi");
  </code></pre>
  
  <p>Still I'm getting error.</p>
  
  <p>I'm using Windows and I couldn't figure out where I went wrong. Can anyone help me in this regard?</p>
  
  <p>Thanks in advance.</p>