0
Follow
5
View

exe files cannot be run directly under codeblocks, and libstd++-6.dll and libgcc_s_seh-1.dll cannot be found

dwayne2010 注册会员
2023-02-28 22:20

package from < a href =" https://blog.csdn.net/hihell" target="_blank"> The dream eraser Storm group based on the GPT "secret"


This problem is usually caused by a different version of the compiler being used at compile time, resulting in a program that needs to be run using a different library file than when compiled.

There are two solutions:

  1. Install runtime library Files
    You can try to find these library files in the following path: C:\Program Files(x86)\CodeBlocks\MinGW\bin. If these libraries don't exist, you can try downloading and installing the MinGW compiler. When installing the MinGW compiler, select the "Add MinGW to the system PATH" option.

  2. Using static chaining
    At compile time, you can choose to use static chaining so that you can package the library files you need into an executable file, eliminating the need to provide the library files separately at runtime. In Code::Blocks, you can enter "Build Options" in project properties -> In Linker settings, select Link the wxWidgets library as a static library. If you are using other library files, you can similarly configure them in the compile options.

dwj313 注册会员
2023-02-28 22:20

About the Author

Question Info

Publish Time
2023-02-28 22:19
Update Time
2023-02-28 22:19