User forums > Help
Code blocks acting very weird.
torchi12:
I made a little c++ program in code blocks and sent the .exe to a friend.
He got the error: "program could not start, because libgcc_s_dw2-1.dll is missing on the computer.".
I searched on forums for help, but when I looked I didn't even seem to have that dll file, but I could run it....
I decided to uninstall codeblocks and reinstall it.
When I tried to run a cpp file from code blocks, I would then get the libgcc_s_dw2-1.dll is missing...
After a few uninstalls and reinstalls I decided to see if another IDE would work.
I installed Dec-C++ and it works, but I like Code Blocks 1000 times more than Dev-C++..
I once more installed Code blocks (with dev-cpp still installed) and now if I
press the compile and run - nothing happends. Nothing at all.
If I press the run button, it runs.
But if I make any changes to the code, it doesnt get affected.
If the code is: cout <<"Hello"
and then I change it to: cout <<"wasaa";
It would still output Hello.
EDIT:
If I press compile and run - nothing happends, and THEN run the regular CMD-like window will open.
If I close that window, another will pop up. When I close that, nothing happends.
torchi12:
Can anyone help me?
MortenMacFly:
--- Quote from: torchi12 on November 12, 2011, 03:23:25 pm ---He got the error: "program could not start, because libgcc_s_dw2-1.dll is missing on the computer.".
--- End quote ---
Well, you should have better tried to understand, what that means. The reason is that the compiler you are using creates executables that depend on that library as long as you don't statically link, which requires a single, simple compiler switch.
Instead, you uninstall/install IDE's whose compiler conflict and blame C::B afterwards that nothing works. In addition you don't mention what version of C::B you are using on what platform etc...
Well, that's the kind of stuff I really don't like and usually wouldn't even bother and probably even delete the post, however... here is a way out:
Uninstall both IDE's, make sure both install path's are really empty. Make sure the compiler is fully un-installed, check the PATH environment that DevC++ didn't leave references.
Clear the C::B settings, usually located in your user's home directory, or Application data (depending on your OS which you didn't mention this obviously varies). If unsure, search for a file named "default.conf" in your HDD's.
The install C::B from scratch - choose a nightly which has the compiler bundled. Make sure you setup the compiler correctly, especially check, it in the compiler settings the toolchain path is setup correctly.
torchi12:
Uninstalled both IDEs.
I'm on Windows 7, 32 bit.
Cleared the default.conf file.
"NOTE: There are also more recent nightly builds available in the forums or (for Debian users) in Jens' repository. Please note that we consider nightly builds to be stable, usually."
>Debian users<
Should I just download the codeblocks-10.05mingw-setup.exe?
torchi12:
Oh, I misread.
"OR for Debian users"
Navigation
[0] Message Index
[#] Next page
Go to full version