请问为什么在clion中调用graphics头文件(工具链是VS2022,安装了EasyX),检查代码是没有报错,但即使是最简单的代码也会提示构建失败
#include <graphics.h>
#include <conio.h>
using namespace std;
int main(){
initgraph(640, 480);
circle(200, 200, 100);
_getch();
closegraph();
return 0;
}
出现undefined reference to initgraph(int, int, int)' undefined reference to
closegraph()'