我正在尝试构建和安装 pymqi,但是在尝试编译它时遇到了很多错误。
我做了以下事情:
获取并安装 MinGW gcc
创建 libpython2?.a
使用说明来自:https ://pythonhosted.org/pymqi/mingw32.html
当我尝试使用以下方法构建它时:setup.py build -cmingw32 client
我得到一个未定义引用的列表。下面是一些例子
build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x25e): undefined reference to `MQINQMP'
build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x463): undefined reference to `MQSETMP'
最后,我还收到以下错误:
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build\temp
.win32-2.6\Release\pymqe.o: bad reloc address 0x0 in section `.data'
collect2.exe: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
我在用:
- 蟒蛇 26
- gcc 版本 4.8.1 (GCC)
任何线索和帮助将不胜感激:)