c - 无法识别 DLL 文件格式
问题描述
所以我一直在尝试安装 luasql-mysql 模块一段时间,但我一直遇到问题。这次我去安装它给了我这个错误:
luasql-mysql 2.5.0-1 depends on lua >= 5.1 (5.3-1 provided by VM)
mingw32-gcc -O2 -c -o src/luasql.o -IC:\Program Files\lua-5.3.5\src src/luasql.c -
Ic:/windows/system32/include
mingw32-gcc -O2 -c -o src/ls_mysql.o -IC:\Program Files\lua-5.3.5\src src/ls_mysql.c -
Ic:/windows/system32/include
mingw32-gcc -shared -o luasql/mysql.dll src/luasql.o src/ls_mysql.o -Lc:/windows/system32 -
lmysqlclient C:\Program Files\lua-5.3.5\src/lua53.dll -lm
c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -lmysqlclient
C:\Program Files\lua-5.3.5\src\lua53.dll: file not recognized: file format not recognized
collect2.exe: error: ld returned 1 exit status
Error: Build error: Failed compiling module luasql/mysql.dll
我将尝试重新安装所有内容并希望它有效,但如果有人知道我为什么会遇到这个问题,那么我将不胜感激。
解决方案
推荐阅读
- javascript - 如果部分状态发生变化,如何停止反应重新渲染组件?
- c++ - Why can't I assign a value to a sequential list structure in a loop
- ubuntu-18.04 - 安装 PySide2 的问题
- python - Python 错误:最多输入 1 个参数,得到 3 个
- latex - Changing how the LaTeX listings package renders the tilde
- ios - 在 SwiftUI 中使用 animatableData 制作动画的问题
- static-libraries - 理解 Linux 中静态库 (.a) 的 hexdump 的问题
- javascript - 如何显示隐藏的组件?
- c++ - 将整数作为输入时检查换行符时遇到问题
- java - spring boot actuator endpoints not activated