c++ graphics.h -lbgi not found

前端 未结 4 1031
长情又很酷
长情又很酷 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条回答
  •  -上瘾入骨i
    2021-01-20 12:24

    Download this and put it in your C compiler's lib folder. Also do not forget to add in the linkers:

    -lbgi
    -lgdi32
    -lcomdlg32
    -luuid
    -loleaut32
    -lole32
    

    After doing above, you would get the actual compile error belonging to initgraph() or other.

    It is worked for me in Codeblocks 13.12.

提交回复
热议问题