while running the graphics code in code blocks the exe file won't run and shows an error, but the same code runs in turboc

-3

While running the code, the .exe file stopped without displaying output and showed an error: process returned -1073741819 (0xC0000005)

I had downloaded graphics.h, winbgi.h, libbgi.a, pasted these files in include and lib directory of code blocks respectively, and set the path in the settings>>compiler>>linker setting.

#include <graphics.h>
#include <conio.h>

using namespace std;

int main()
{     
 int gd = DETECT, gm;

 char c_array[] = "C:\\turboc3\\bgi";

 initgraph (&gd, &gm, c_array);
 circle (200, 200, 100);
 getch();
 closegraph();
 return 0;
}
c++
bgi
winbgi
asked on Stack Overflow Aug 14, 2019 by Tushar Malhotra • edited Aug 15, 2019 by Spektre

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0