I'm trying to work with graphics.h outside the difficult-to-handle Turboc++(like codeblocks-20.03mingw), first when i first tryed to install separately graphics.h, winbgim.h and libbgi.a using traditional ways, i found some errors, one by one fixed them, but now the code here
#include<stdio.h>
#include<graphics.h>
main(){
int gm,gd=DETECT;
initwindow(100,100);
line(122,122,599,599);
}
with result
=== Build failed: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===
is causing the program to start the console window with the message
Process returned -1073741819 (0xC0000005) execution time : 2.661 s
Press any key to continue.
but not showing graphics window afterwards(as I expected), i'm on Windows 10 Pro 1909 (64bit OS).
Please tell me how to fix this,
User contributions licensed under CC BY-SA 3.0