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.
User contributions licensed under CC BY-SA 3.0