how to solve codeblocks unable to run a graphics c program properly

-2

I had setup codeblocks for graphics programming. like I install winbgim file. and done other setup in the codeblocks linker setting. but when I ran a program like this

// C Implementation for drawing circle 
#include <graphics.h> 

int main() 

{ 
    int gd = DETECT, gm; 


    initgraph(&gd, &gm, ""); 

    // circle fuction 
    circle(250, 200, 50); 

    getch(); 
    closegraph(); 

    return 0; 
} 

it did not run as I expected .the process returned by 0xc0000005 . and also the winbgi window did not opened. so plz help me to out of this problem

c
codeblocks
winbgi
asked on Stack Overflow Apr 20, 2019 by Tushar Mia • edited Apr 20, 2019 by Yunnosch

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0