Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:49:01+00:00 2026-06-06T11:49:01+00:00

I just went through writing a fairly lengthly application in c++ using mingw and

  • 0

I just went through writing a fairly lengthly application in c++ using mingw and I went to give it to a few friends to try it out. When they went to execute the .exe file it came up with an error that says:

The program can’t start because libgcc_s_dw2-1.dll is missing from your computer. Try reinstalling the program to fix this problem

This error occurs with the debug version. Compiling with the release version comes up with the same error except “libgcc_s_dw2” is replaced with “libstdc++-6”.

I was able to fix this issue by including the .dll’s with the .exe but I would rather it be standalone for when I decide to release it to more of a general audience.

I have found this question asked a lot but all of them say to add -static-libstdc++ to the linker options.

I am using CodeBlocks and went to build options and put it in the same location I linked MinGW with. This didn’t work, so I tried the other box next to it for additional options but that didn’t work either.

I know it’s probably a simple thing that I’m missing but I can’t think of anywhere to put it.

I appreciate any help and thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:49:03+00:00Added an answer on June 6, 2026 at 11:49 am

    I added the options -static-libgcc and -static-libstdc++ to the Linker settings as shown here (separated by a space) and it worked for me.

    Make sure to rebuild your executable from the Build menu (or with Ctrl-F11), CodeBlocks won’t rebuild it if you just try to build after changing the settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just went through a bunch of stuff trying to figure out how to
I just went through some MVC tutorials after checking this site out for a
I just started using Boost::xpressive and find it an excellent library... I went through
I just went through trying to make an alarm clock app with local notifications
Just as the title says. As i went through different explanations for choices made
I just went through the whole certificate/keychain/provisioning/appID/profile/DNA test process to get my app running
I didn't use LINQ to SQL in project, I just went through a hand-on
How can I verify an email address with codeigniter? I just went through the
I just went through this tutorial: update-widget-in-onreceive-method (btw: would you propose any improvements to
I am just started coding of device driver and new to threading, went through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.