c++ graphics.h -lbgi not found

前端 未结 4 1075
长情又很酷
长情又很酷 2021-01-20 11:43

I have this code:

#include
int main( )
{
    initwindow( 700 , 700 , \"MY First Program\");
    circle(200, 200, 150);
    getch();
    ret         


        
4条回答
  •  误落风尘
    2021-01-20 12:48

    Perhaps your default location of compiler is not under ide folder. In this situation you have to copy graphics.h and winbgim.h in include folder and libbgi in lib folder of default location of the compiler also which may be C:\MinGW\include and C:\MinGW\lib.

提交回复
热议问题