User forums > Using Code::Blocks

program can't start because libgcc_s_dw2-1.dll is missing from your computer

<< < (3/4) > >>

m.m.m:

--- Quote from: stahta01 on November 29, 2016, 03:39:21 am ---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.

--- End quote ---

My compiler is MinGW, running on code::blocks 16.01, how can I find the option I need to add?
Thanks a lot

stahta01:

--- Quote from: m.m.m on November 29, 2016, 01:16:12 pm ---
--- Quote from: stahta01 on November 29, 2016, 03:39:21 am ---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.

--- End quote ---

My compiler is MinGW, running on code::blocks 16.01, how can I find the option I need to add?
Thanks a lot

--- End quote ---

Step 1: Is figuring out the group that built your compiler!
Is it an TDM's built MinGW GCC?
Is it an TDM's built MinGW64 GCC?
Is it an SJLJ or DW2 built compiler? SJLJ=Set Jump Long Jump DW2 = Drawf2
Yours is likely DW2; but, it is NOT certain.
Step 2: Is getting the Compiler version info. Like 4.9.1 or ??

Tim S.

stahta01:
FYI: I am done helping you till you post a build log and/or more info like I have requested.
I hated playing 20 questions as a kid; I consider it a waste of my time and this forum band width now.

Tim S.

m.m.m:

--- Quote from: stahta01 on November 29, 2016, 03:20:20 pm ---
--- Quote from: m.m.m on November 29, 2016, 01:16:12 pm ---
--- Quote from: stahta01 on November 29, 2016, 03:39:21 am ---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.

--- End quote ---

My compiler is MinGW, running on code::blocks 16.01, how can I find the option I need to add?
Thanks a lot

--- End quote ---

Step 1: Is figuring out the group that built your compiler!
Is it an TDM's built MinGW GCC?
Is it an TDM's built MinGW64 GCC?
Is it an SJLJ or DW2 built compiler? SJLJ=Set Jump Long Jump DW2 = Drawf2
Yours is likely DW2; but, it is NOT certain.
Step 2: Is getting the Compiler version info. Like 4.9.1 or ??

Tim S.

--- End quote ---
Sorry for that, I just fixed it by adding C:\mingw\bin to my search directories.
thanks a lot.

ur_naz:

--- 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 ---

This doesn't work for my basic sfml project on cb20.03. i mean using flags. so i have to put libs near my executable file. >:( However it works fine for my basic winapi project. :o

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version