[Solved] My c++ programs won’t compile after I close the source then open it again


this is caused because you need to link the library libgdi32.a, if you are using the DevC++, click in Tools->Compiler Options, when open the window, check the box “Add these commands to the linker command line” and in the below textbox add the text:

-lgdi32

you form need to be like this:

enter image description here

3

solved My c++ programs won’t compile after I close the source then open it again