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:
-
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. -
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.