User forums > Using Code::Blocks
program can't start because libgcc_s_dw2-1.dll is missing from your computer
Alpha:
The reason is
--- Quote from: jens on August 15, 2012, 06:22:53 am ---[...] because it's neither in the search path, nor in the same folder as the exe.
--- End quote ---
Easiest fix is to simply copy libgcc_s_dw2-1.dll (it should be located somewhere similar to C:\MinGW\bin or C:\Program Files\CodeBlocks\MinGW\bin) into the same folder as the .exe.
Alternatively, add the following two switches to your linker options:
-static-libgcc
-static-libstdc++
m.m.m:
--- Quote from: Alpha on August 23, 2012, 11:19:09 pm ---The reason is
--- Quote from: jens on August 15, 2012, 06:22:53 am ---[...] because it's neither in the search path, nor in the same folder as the exe.
--- End quote ---
Easiest fix is to simply copy libgcc_s_dw2-1.dll (it should be located somewhere similar to C:\MinGW\bin or C:\Program Files\CodeBlocks\MinGW\bin) into the same folder as the .exe.
Alternatively, add the following two switches to your linker options:
-static-libgcc
-static-libstdc++
--- End quote ---
Hi, Sorry to update the old thread, I'm a newbie, how can I add the switches to my linker options?
thanks a lot.
stahta01:
--- Quote from: m.m.m on November 28, 2016, 05:44:51 pm ---Hi, Sorry to update the old thread, I'm a newbie, how can I add the switches to my linker options?
thanks a lot.
--- End quote ---
Project -> Build Options
Select correct target or project in left hand pane
Tab: Linker Settings
Box: Other linker settings
Enter linker options one per line.
Tim S.
m.m.m:
--- Quote from: stahta01 on November 28, 2016, 08:16:43 pm ---
--- Quote from: m.m.m on November 28, 2016, 05:44:51 pm ---Hi, Sorry to update the old thread, I'm a newbie, how can I add the switches to my linker options?
thanks a lot.
--- End quote ---
Project -> Build Options
Select correct target or project in left hand pane
Tab: Linker Settings
Box: Other linker settings
Enter linker options one per line.
Tim S.
--- End quote ---
Thanks for the solution, I first had two errors, one for libstdc++6.dll and one for libgcc_s_dw2-1.dll, now the error for libstdc++6.dll has solved but the error for libgcc_s_dw2-1.dll still remains.
stahta01:
--- Quote from: m.m.m on November 28, 2016, 09:27:32 pm ---
--- Quote from: stahta01 on November 28, 2016, 08:16:43 pm ---
--- Quote from: m.m.m on November 28, 2016, 05:44:51 pm ---Hi, Sorry to update the old thread, I'm a newbie, how can I add the switches to my linker options?
thanks a lot.
--- End quote ---
Project -> Build Options
Select correct target or project in left hand pane
Tab: Linker Settings
Box: Other linker settings
Enter linker options one per line.
Tim S.
--- End quote ---
Thanks for the solution, I first had two errors, one for libstdc++6.dll and one for libgcc_s_dw2-1.dll, now the error for libstdc++6.dll has solved but the error for libgcc_s_dw2-1.dll still remains.
--- End quote ---
You need to add the right linker option for your compiler; I suggest reading about your compiler to find out the option you need to add; note, I know little to nothing about your compiler it might NOT have any option to fix your problem.
Edit: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version