因为今天重新安装了一下codeblocks发现编译代码失败,跳出一个ligcc_s_sjli.dll missing。解决方法如下文所述。
首先按照下图的次序再你的codeblocks上打开
"Settings" -> "Compiler and debugger..."
"Global compiler settings"
"Linker settings"
最后会打开成这样的一个界面
然后再other linker options 框内粘贴如下语句
-static-libgcc -static-libstdc++
最后就重启运行codeblocks就行了