Home >Backend Development >C++ >How to Fix the \'libstdc -6.dll Not Found\' Error in Code::Blocks?
"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:
Under "Other options," add the following commands:
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!