mardi 1 août 2023

my compiler generating an error as cannot find -libgcc

I am trying to run a very general program of graphics using Devc++. I included the required files and set the linker. but i am getting the following error

the code is

#include<graphics.h>

int main( ){
    initwindow( 400 , 400 , "C:\\Dev-C++\\BGI");
    setcolor(YELLOW);
    for(int i=5; i<=150; i+=5) {
    circle(200, 200, i);
    }
        
    getch();
    return 0;
}

the linker part is set to

-static -libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

these are the necessary files included

i was trying to run the program smoothing , but i encountered an error

Aucun commentaire:

Enregistrer un commentaire