Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

libgcc_s_sjlj-1.dll Errors: Repair the Right Runtime on Windows

Length9 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

libgcc_s_sjlj-1.dll is a GCC runtime library used by some Windows programs built with older or specially configured MinGW toolchains. It is not a Windows component, and installing Visual C++, DirectX, or .NET normally will not restore it.

The safest fix is to identify the program showing the error and repair or reinstall that program from its official installer. Do not begin by downloading a loose DLL from a search result.

As an Amazon Associate I earn from qualifying purchases.

What the file is

GCC uses libgcc to provide runtime support for compiled applications. In this filename, SJLJ refers to setjmp/longjmp exception handling, an exception-unwinding model used by older 32-bit MinGW builds.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The same general runtime family can use different filenames:

#1 Best Overall
5-in-1 Win Repair & Reinstall Bootable USB Flash Drive – Fix, Recover, or Reinstall Windows 11 (amd64 + arm64) / 10/7 - Includes PE Tools, Driver Pack, Antivirus, Data Recovery & Password Reset
  • Dual USB-A & USB-C Bootable Drive – compatible with nearly all Windows PCs, laptops, and tablets (UEFI & Legacy BIOS). Works with Surface devices and all major brands.
  • Fully Customizable USB – easily Add, Replace, or Upgrade any compatible bootable ISO app, installer, or utility (clear step-by-step instructions included).
  • Complete Windows Repair Toolkit – includes tools to remove viruses, reset passwords, recover lost files, and fix boot errors like BOOTMGR or NTLDR missing.
  • Reinstall or Upgrade Windows – perform a clean reinstall of Windows 7 (32bit and 64bit), 10, or 11 (amd64 + arm64) to restore performance and stability. (Windows license not included.). Includes Full Driver Pack – ensures hardware compatibility after installation. Automatically detects and installs drivers for most PCs.
  • Premium Hardware & Reliable Support – built with high-quality flash chips for speed and longevity. TECH STORE ON provides responsive customer support within 24 hours.
  • libgcc_s_sjlj-1.dll: commonly associated with older 32-bit MinGW/GCC builds.
  • libgcc_s_seh-1.dll: normally associated with 64-bit MinGW-w64 builds.
  • libgcc_s_dw2-1.dll: another runtime variant used by some older toolchains.

These files are not interchangeable. Renaming one to look like another does not convert its architecture or ABI.

Item What you can safely conclude
File type GCC runtime DLL
Windows component No
Visual C++ Redistributable file No
Usual supplier The application or compiler toolchain that needs it
Common location The application folder or a compiler’s bin folder
Reported catalog metadata May show 32-bit, version 0.0.0.0, and a small file size, but these values are not universal

There is no single publisher, version, size, or checksum that applies to every copy of this filename. Current toolchains may use another runtime model or statically link the GCC runtime, so they may not contain this DLL at all.

First identify the program that needs it

Read the title bar and body of the Windows error. The failing program may be a game, launcher, editor, compiler-built executable, installer, or middleware component.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the message appeared after double-clicking a shortcut, right-click that shortcut, select Properties, and inspect Target. That identifies the executable Windows attempted to launch.

Also check whether the failure began after one of these events:

  • An application update or incomplete reinstall
  • Extracting a portable program from an incomplete archive
  • Antivirus quarantine
  • Disk cleanup or manual deletion
  • Replacing application files
  • Changing the compiler or project configuration
  • Installing a nightly or portable build over an older installation

The program that displays the error is more important than the DLL filename. Several unrelated applications can require a GCC runtime.

Fix 1: Repair or reinstall the affected application

This is the most likely solution for an ordinary application or game.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the program’s repair feature

  1. Open Settings with Windows + I.
  2. Select Apps and then Installed apps.
  3. Find the affected application.
  4. Select the three-dot menu beside it.
  5. Choose Advanced options, if available.
  6. Select Repair and wait for Windows to finish.
  7. Start the application again.

For a game or launcher, open its own client and look for Verify files, Repair, or Scan and repair. The wording varies by product. Run that process before reinstalling.

If the program was installed from an archive, delete the incomplete extracted folder and extract the official archive again to a new folder. Do not copy only the missing DLL from another installation.

Reinstall from the official source

If repair is unavailable or does not work:

  1. Uninstall the affected application from Settings > Apps > Installed apps.
  2. Restart Windows.
  3. Download the application again from its developer or publisher.
  4. Temporarily close other installers and run the official installer.
  5. Start the program before restoring custom plug-ins, mods, or copied files.

If the program is a developer tool, reinstall the exact GCC or MinGW distribution used by the project. Official TDM-GCC packages and MinGW-w64 toolchain distributions are appropriate sources when you know that is what supplied the original executable. A different compiler family may provide a different runtime variant.

A successful repair normally produces one of two results: the program starts, or the error changes to name another missing dependency. The latter means the original runtime problem was addressed and the application has another incomplete dependency set to repair.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix 2: Check antivirus quarantine

Windows Security may have removed or quarantined the DLL, particularly after an application update or when an old portable program is used.

  1. Open Windows Security from the Start menu.
  2. Select Virus & threat protection.
  3. Select Protection history.
  4. Expand any detection associated with the affected program or its installation folder.
  5. Check the file path and detection details.
  6. Restore the file only if it came from a trusted, verified official installation and you have good reason to believe the detection is false.

Do not restore a file merely because doing so makes the error disappear. If the source is uncertain, leave it quarantined and reinstall the application from its official installer. Microsoft notes that a restored threat may be detected again, and exclusions reduce protection.

After reinstalling, run Windows Security > Virus & threat protection > Scan options > Microsoft Defender Offline scan if the same file is repeatedly removed.

Fix 3: Match the application’s architecture

A 64-bit Windows installation can run a 32-bit application. Therefore, the fact that Windows itself is 64-bit does not mean the missing DLL should be a 64-bit replacement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the executable with the application’s documentation or a trusted PE inspection tool. You can also look at the installation layout:

  • Older 32-bit MinGW applications often require the SJLJ runtime.
  • 64-bit MinGW-w64 applications normally use the SEH runtime instead.
  • A project built with another exception model may require a different runtime or no DLL at all.

If the application is 32-bit, obtain the matching 32-bit runtime from the original application or toolchain. Do not substitute libgcc_s_seh-1.dll or libgcc_s_dw2-1.dll, and do not place a random 64-bit DLL beside a 32-bit executable.

Fix 4: Restore the compiler path for a developer-built program

For your own executable, the DLL may already exist but Windows may not be searching the directory that contains it.

Open Command Prompt and run:

where libgcc_s_sjlj-1.dll

If Windows finds a copy, note its full path. A normal compiler installation may place it in a bin directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can search common installation locations from PowerShell:

Get-ChildItem -Path "C:Program Files","C:Program Files (x86)" `
  -Filter libgcc_s_sjlj-1.dll -Recurse -ErrorAction SilentlyContinue

If the correct copy is in the toolchain’s bin directory, add that directory to PATH:

  1. Press Windows + R.
  2. Type sysdm.cpl and press Enter.
  3. Open the Advanced tab.
  4. Select Environment Variables.
  5. Under User variables, select Path.
  6. Select Edit > New.
  7. Add the exact compiler bin directory.
  8. Select OK on each dialog.
  9. Close and reopen the application or development environment.

Do not add a directory simply because it contains a DLL with the right name. It must belong to the toolchain that built the executable.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]

For deployed software, placing the matching runtime beside the executable is usually more predictable than relying on a global PATH. Copy the runtime from the same compiler distribution, deploy all required runtime files from that distribution, and follow its license and deployment instructions.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft documents the Windows DLL search order and application-local deployment guidance. The application directory is normally preferable to copying third-party files into Windows system directories.

Fix 5: Check for a hidden dependency failure

The message “The specified module could not be found” does not always mean that libgcc_s_sjlj-1.dll itself is absent. Windows may have found that file but failed to load one of its dependencies.

If the DLL is beside the executable and the error persists:

  1. Confirm that the file was not blocked or quarantined.
  2. Confirm that the DLL and executable have matching architecture.
  3. Check whether the launcher starts a different executable than the one you inspected.
  4. Check whether PATH points to an older compiler installation.
  5. Reinstall the complete application or toolchain rather than replacing one file.
  6. Use a trusted dependency inspection utility to identify the missing dependent module.

A mixed toolchain is a common developer-side cause. Remove stale compiler paths, configure the project to use one consistent GCC or MinGW installation, rebuild, and deploy its complete runtime set.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Fix 6: Update or reinstall related drivers only when evidence points there

A graphics or hardware driver does not normally supply this GCC runtime. Driver work is relevant only if the application also reports graphics initialization failures, crashes after loading, or broader device problems.

To reinstall a driver through Windows:

  1. Right-click Start and select Device Manager.
  2. Expand the relevant category, such as Display adapters.
  3. Right-click the device and choose Update driver.
  4. Select Search automatically for drivers.
  5. If that does not help, right-click the device again and select Uninstall device.
  6. Restart Windows so the driver can be detected again.
  7. Install the driver from the hardware manufacturer if Windows does not restore it correctly.

Outbyte Driver Updater can reduce the work of hunting through many driver versions: its free scan shows what it identifies, while driver installation is handled by the full version. It is optional, and reinstalling the affected application remains the definitive fix when that application owns the missing DLL.

Do not install a driver simply to address this filename. Drivers, Windows Features, DirectX, and .NET do not normally provide libgcc_s_sjlj-1.dll.

Fix 7: Repair Windows components only as a fallback

Because this is normally a third-party application DLL, Windows repair commands are not first-line fixes. Use them when other Windows components are also failing, updates are damaged, or multiple unrelated programs report system errors.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Right-click Start and select Terminal (Admin) or Command Prompt (Admin).
  2. Run:
DISM.exe /Online /Cleanup-Image /RestoreHealth
  1. Wait for it to complete.
  2. Then run:
sfc /scannow
  1. Restart Windows and test the application again.

Microsoft recommends running DISM before SFC. These commands repair Windows component files; they do not download the application’s GCC runtime.

Repeating SFC and DISM without knowing what changed can waste time. Outbyte PC Repair can make the manual diagnosis easier by showing what its free scan identifies, while repair is performed by the full version. It is optional, and reinstalling the program remains the correct fix when the missing file belongs to that program.

Fix 8: Use System Restore only for a recent change

If the application worked recently and the break began after a driver, update, or system change, System Restore may help when a suitable restore point exists.

  1. Press Windows + R.
  2. Type rstrui.exe and press Enter.
  3. Select Next.
  4. Choose a restore point dated before the problem began.
  5. Select Scan for affected programs if available.
  6. Review the changes.
  7. Select Finish and allow Windows to restart.

System Restore does not replace a missing application installation and should not be the first choice when reinstalling the program is straightforward.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What not to do

Do not download a loose DLL

Random DLL download pages can provide malware, the wrong architecture, an incompatible ABI, or a damaged file. Even a genuine copy may not fix the missing dependency, search path, or incomplete installation.

Use the original application installer, its official repair or verification feature, or the exact official GCC/MinGW distribution used to build the program.

Do not copy it to System32 or SysWOW64

System32 and SysWOW64 are not general-purpose locations for third-party application runtimes. Global copies can create version conflicts and make another program load the wrong binary. Keep the DLL in the application directory or the matching toolchain location.

Do not register it with regsvr32

regsvr32 is for registering DLLs that expose COM entry points such as DllRegisterServer. A GCC runtime is normally a dependency library, not a COM server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This command is therefore not a repair:

regsvr32 libgcc_s_sjlj-1.dll

An error from regsvr32 does not prove that the runtime is defective.

FAQ

Is libgcc_s_sjlj-1.dll part of Windows?

No. It is supplied by an application or GCC/MinGW toolchain.

Should I install Visual C++ Redistributable?

Not for this file. Visual C++ provides Microsoft’s runtime libraries, while this is a GCC runtime.

Which programs use it?

Examples include some TDM-GCC-built applications, older SFML and Code::Blocks projects, Geany Windows builds, Perl or Strawberry Perl components, and other older 32-bit MinGW software. The filename alone cannot identify one specific program.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Is the file always 32-bit?

It is strongly associated with older 32-bit SJLJ MinGW builds, but do not decide from the filename alone. Match the runtime to the executable and its toolchain.

Why does reinstalling not help?

The launcher may be starting another copy, antivirus may remove the file again, PATH may select a stale runtime, or the named DLL may have a missing dependency. Check those possibilities before copying another binary.

When should I use SFC or DISM?

Only when there is broader evidence of Windows corruption. Repair the application or compiler installation first.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.