graphics.h library Process returned -1073741819 (0xC0000005)

0

I want to start writing code using functions from the graphics.h library in Code::Blocks. After downloading, moving, and linking everything I'm still getting the error: "Process returned -1073741819 (0xC0000005)" whenever I try to run any program that calls the graphics.h library.

#include<graphics.h>

int main()
{
int gd = DETECT;
int gm;
initgraph(&gd, &gm, "C:\\TC\\BGI");

arc(200,200,0,130,50);

getch();
closegraph();
return 0;
}

This is just an example of what would return that error. If I leave out all the functions it returns 0.

c++
c
codeblocks
bgi
asked on Stack Overflow Nov 22, 2018 by depression_vortex • edited Nov 22, 2018 by Spektre

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0