First, I creat a console
And then, I write the code below
#include<graphics.h>
void main()
{
initgraph(1000,1000);
line(100,100,300,300);
lineto(400,500);
linerel(200,200);
getch();
}
But, when I compile, it goes wrong with "PellesC\Include\Win\winnt.h(559): fatal error #1014: #error: "No target architecture".
"
I tried the "Enable Microsoft extensions" in the project opinion, but it didn't work.
Thanks in advance.