I am new to C programming. I downloaded Code::Blocks to try. I had already installed the gcc compiler and so that's what codeblocks is set to use. I wrote a simple program and compile and ran it. It ran fine when I ran it from inside Code::Blocks but when I tried to double click the .exe
it said
"The program can't start because libgcc_s_dw2-1.dll is missing from your
computer. Try reinstalling the program to fix this problem."
Why is it that it works when I run it in Code::Blocks but not when I click on the file?
BTW, here are my #include
s.
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
I think author already solved his problem, but I just want to add my solution. To use your executable file you need to follow these steps, to configure your project:
Enter follow linker options one per line:
-static
-static-libgcc
-static-libstdc++
Also,it could be helpful to add (..\mingw\bin) path to the project search directories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With