代码:
#include <graphics.h>
#include <conio.h>
int main()
{
initgraph(640, 480);
circle(200, 200, 100);
_getch();
closegraph();
return 0;
}
报错:
C:\Users\cnoug\AppData\Local\Temp\cci4hdCg.o:graphics.cpp:(.text+0x1e): undefined reference to `initgraph(int, int, int)'
C:\Users\cnoug\AppData\Local\Temp\cci4hdCg.o:graphics.cpp:(.text+0x33): undefined reference to `circle(int, int, int)'
C:\Users\cnoug\AppData\Local\Temp\cci4hdCg.o:graphics.cpp:(.text+0x41): undefined reference to `closegraph()'
collect2.exe: error: ld returned 1 exit status