Home > Backend Development > C++ > How to Fix the \'libstdc -6.dll Not Found\' Error in Code::Blocks?

How to Fix the \'libstdc -6.dll Not Found\' Error in Code::Blocks?

Susan Sarandon
Release: 2024-12-05 15:27:10
Original
388 people have browsed it

How to Fix the

"libstdc -6.dll Not Found" Issue in Code::Blocks

When attempting to start a new project in Code::Blocks, a user encountered the "libstdc -6.dll was not found" error. Despite reinstallation and updates, the issue persisted.

Upon investigation, it was determined that the issue may be related to the linking of the C standard library. To resolve this:

To link the C standard library statically:

  1. Navigate to the "Project" tab and select "Compiler settings."
  2. Under "Other options," add the following commands:

    • -static-libstdc
    • -static-libgcc

Alternatively, the -static option can be used to imply -static-libgcc and -static-libstdc .

Note: If building C libraries, they must also be compiled with the same static vs. not options.

After implementing these changes, the user should be able to successfully start their project in Code::Blocks.

The above is the detailed content of How to Fix the \'libstdc -6.dll Not Found\' Error in Code::Blocks?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template