Libgcc_s_dw2-1.dll Was Not Found: How to Get it Back

Add the right parameters to the compiler to fix this

Reading time icon 2 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

libgcc_s_dw2-1.dll
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

For fixing DLL errors, we recommend Fortect:

Fortect will search for an intitial version of your missing, corrupted or damaged DLL files that cause problems to your Windows OS and will replace it. Here is how to find them in 3 easy steps:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning to find DLL files that could be causing PC problems
  • Right-click on Start Repair to replace all broken DLLs or fix them one by one from the console
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Many developers reported that libgcc_s_dw2-1.dll is missing on their PC, and that can create various problems, especially when developing, so today we’re going to show you how to fix this issue.

What can I do if libgcc_s_dw2-1.dll was not found?

1. Add parameters to your compiler

  1. Configure the MinGW C++ Linker to run with the following parameters: -static -static-libgcc -static-libstdc++
    linker flags
  2. Save changes.
  3. Try to run the compiler again.

Keep in mind that the exact process varies depending on the software you’re using for the development. Few users reported that just using -static or -static-libgcc worked for them.

A few users reported that they used QMAKE_LFLAGS += -static so try it as well.

2. Copy the missing DLL to the right directory

  1. Locate the libgcc_s_dw2-1.dll on your PC. If you don’t have it, download it from a reliable source.
  2. Move it to the following directories:
    C:\MinGW\bin
    C:\Program Files\CodeBlocks\MinGW\bin
  3. The file needs to be in the same folder as the .exe.

If the libgcc_s_dw2-1.dll is missing, you won’t be able to compile the code properly, but in most cases, you can use different flags to bypass this issue.

This isn’t the only issue with the missing DLLs, and we already wrote about missing msv1160cp10.dll and anselSDK64.dll on your PC.

We also have a guide on what to do if nvapi64.dll is missing or if the “HTMLayout.dll cannot be loaded,” so check it out. Did you find a different solution? If so, share it with us in the comments section.

More about the topics: DLL errors, DLL issues

User forum

0 messages