【发布时间】:2023-03-29 21:55:01
【问题描述】:
我正在尝试编译 zbar-0.10 以静态链接到 MinGW 依赖项,因此它不需要 libgcc_s_dw2-1.dll、libwinpthread-1.dll 和 libstdc++-6.dll。
根据MinGW .exe requires a few gcc dll's regardless of the code? 接受的答案,我尝试将-static -static-libgcc -static-libstdc++ 添加到我的./configure 脚本参数中:
./configure -static-libgcc -static-libstdc++ -static -lpthread --without-qt --without-gtk --without-python --without-imagemagick
但是我收到了这个错误:
配置:错误:无法识别的选项:-static-libgcc
传递给配置脚本的正确参数是什么,以便 MinGW 依赖项静态链接到 ZBar?
【问题讨论】:
-
可能你的MinGW版本不支持?你在使用 libtool 吗?如果是,this man 应该会有所帮助。
标签: c mingw static-linking configure zbar