安装asyncio backport trollius时出现gcc错误(Python 2.7.5和Win7)

山姆

我无法安装asyncio backport trollius。从文档中,我必须:“ ...首先构建_overlapped.pyd扩展名(它将放置在asyncio目录中):”

PS C:\Users\M1330\Downloads\trollius-0.1.6> python setup.py build_ext
running build_ext
building 'asyncio._overlapped' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\WinPython\tools\mingw32\bin\gcc.exe -mdll -O -Wall -IC:\WinPython\python-2.7.5\include -IC:\WinPython\python-2.7.5\PC -c overlapped.c -o build\temp.win32-2.7\Release\overlapped.o
overlapped.c:105:1: error: unknown type name 'LPFN_ACCEPTEX'
overlapped.c:105:36: warning: initialization makes integer from pointer without a cast [enabled by default]
overlapped.c:106:1: error: unknown type name 'LPFN_CONNECTEX'
overlapped.c:106:38: warning: initialization makes integer from pointer without a cast [enabled by default]
overlapped.c:107:1: error: unknown type name 'LPFN_DISCONNECTEX'
overlapped.c:107:44: warning: initialization makes integer from pointer without a cast [enabled by default]
overlapped.c: In function 'initialize_function_pointers':
overlapped.c:118:25: error: 'WSAID_ACCEPTEX' undeclared (first use in this function)
overlapped.c:118:25: note: each undeclared identifier is reported only once for each function it appears in
overlapped.c:119:26: error: 'WSAID_CONNECTEX' undeclared (first use in this function)
overlapped.c:120:29: error: 'WSAID_DISCONNECTEX' undeclared (first use in this function)
overlapped.c: In function 'overlapped_RegisterWaitWithQueue':
overlapped.c:293:5: warning: implicit declaration of function 'RegisterWaitForSingleObject' [-Wimplicit-function-declaration]
overlapped.c:294:38: error: 'WAITORTIMERCALLBACK' undeclared (first use in this function)
overlapped.c:294:58: error: expected ')' before 'PostToQueueCallback'
overlapped.c: In function 'overlapped_UnregisterWait':
overlapped.c:320:5: warning: implicit declaration of function 'UnregisterWait' [-Wimplicit-function-declaration]
overlapped.c: In function 'Overlapped_dealloc':
overlapped.c:583:21: warning: unknown conversion type character 'R' in format [-Wformat]
overlapped.c:583:21: warning: too many arguments for format [-Wformat-extra-args]
overlapped.c: In function 'Overlapped_AcceptEx':
overlapped.c:959:22: error: called object 'Py_AcceptEx' is not a function
overlapped.c: In function 'Overlapped_ConnectEx':
overlapped.c:1046:23: error: called object 'Py_ConnectEx' is not a function
overlapped.c: In function 'Overlapped_DisconnectEx':
overlapped.c:1086:26: error: called object 'Py_DisconnectEx' is not a function
overlapped.c: In function 'Overlapped_WaitNamedPipeAndConnect':
overlapped.c:1224:5: warning: implicit declaration of function 'QueueUserWorkItem' [-Wimplicit-function-declaration]
overlapped.c: In function '_init_overlapped':
overlapped.c:1410:5: error: 'SO_UPDATE_CONNECT_CONTEXT' undeclared (first use in this function)
overlapped.c: At top level:
overlapped.c:256:1: warning: 'PostToQueueCallback' defined but not used [-Wunused-function]
overlapped.c:517:1: warning: 'Overlapped_doc' defined but not used [-Wunused-variable]
error: command 'gcc' failed with exit status 1

未声明的变量和类型名称。我知道一点C,我在这里想念什么?

海波

您可以安装Microsoft SDK来构建Python扩展,请参见:http : //haypo-notes.readthedocs.org/misc.html#compile-python-extensions-on-windows

注意:我是Trollius的作者。您可以通过电子邮件与我联系。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在win2008R2和Win7上启用PSRemoting的错误

来自分类Dev

如何在Win7和Python34中安装Paramiko?

来自分类Dev

双启动ubuntu win7安装错误休眠

来自分类Dev

麻烦在win7上安装opencv 2.4.10,python 2.7.5

来自分类Dev

Win7安装文件的校验和?

来自分类Dev

从python3.2和Win7上的Pyodbc在SQL Server 2008 R2上创建表的错误

来自分类Dev

在Win7中安装qPython

来自分类Dev

在Win7上刻录Win10安装介质,而不升级Win7?

来自分类Dev

Visual Studio 2015安装错误(Win7 86x)

来自分类Dev

在VirtualBox中安装Win7 x64-错误驱动程序设备丢失

来自分类Dev

安装Win7时密码中的奇怪符号=>丢失密码

来自分类Dev

重新安装Win7时CPU无法重启

来自分类Dev

安装3.5后如何从win7 powershell启动python 2.7?

来自分类Dev

安装3.5后如何从win7 powershell启动python 2.7?

来自分类Dev

双启动加密的Ubuntu 13.04 / 12.04(安装CD上的选项)和Win7

来自分类Dev

有双启动Win7和Mint 17.3,如何通过Mint安装Ubuntu?

来自分类Dev

节点npm install -g bower致命错误:Win7上的CALL_AND_RETRY_2

来自分类Dev

安装3个操作系统(2个发行版+ Win7)需要多少个分区?

来自分类Dev

在Win7中安装适用于Win XP的Samsung Android Note 2 MTP INF驱动程序-Win10是否使用相同的驱动程序?

来自分类Dev

可能的Qt5错误:调用setFixedSize()禁用主窗口的关闭按钮(在Win7下)

来自分类Dev

已安装Win7 SDK。找不到winDbg

来自分类Dev

在Win7 64位上安装Qwt

来自分类Dev

在加密的WIN7 SSD上安装Linux Mint?

来自分类Dev

侧面安装Win7后如何启动到Ubuntu?

来自分类Dev

Win7在登录时重置HKCU /环境/温度和TMP

来自分类Dev

安装ftp vsftpd时,出现tomcat7错误

来自分类Dev

在CentOS 7上从源码安装pymol时出现错误

来自分类Dev

在AMD Athlon 2(华擎主板)3.3GHz 4GB RAM和图形卡上安装ubuntu来替换win7家庭高级版64 x86

来自分类Dev

2-5分钟后Internet速度变慢Win7 x64 Realtek PCIe FE 8167

Related 相关文章

  1. 1

    在win2008R2和Win7上启用PSRemoting的错误

  2. 2

    如何在Win7和Python34中安装Paramiko?

  3. 3

    双启动ubuntu win7安装错误休眠

  4. 4

    麻烦在win7上安装opencv 2.4.10,python 2.7.5

  5. 5

    Win7安装文件的校验和?

  6. 6

    从python3.2和Win7上的Pyodbc在SQL Server 2008 R2上创建表的错误

  7. 7

    在Win7中安装qPython

  8. 8

    在Win7上刻录Win10安装介质,而不升级Win7?

  9. 9

    Visual Studio 2015安装错误(Win7 86x)

  10. 10

    在VirtualBox中安装Win7 x64-错误驱动程序设备丢失

  11. 11

    安装Win7时密码中的奇怪符号=>丢失密码

  12. 12

    重新安装Win7时CPU无法重启

  13. 13

    安装3.5后如何从win7 powershell启动python 2.7?

  14. 14

    安装3.5后如何从win7 powershell启动python 2.7?

  15. 15

    双启动加密的Ubuntu 13.04 / 12.04(安装CD上的选项)和Win7

  16. 16

    有双启动Win7和Mint 17.3,如何通过Mint安装Ubuntu?

  17. 17

    节点npm install -g bower致命错误:Win7上的CALL_AND_RETRY_2

  18. 18

    安装3个操作系统(2个发行版+ Win7)需要多少个分区?

  19. 19

    在Win7中安装适用于Win XP的Samsung Android Note 2 MTP INF驱动程序-Win10是否使用相同的驱动程序?

  20. 20

    可能的Qt5错误:调用setFixedSize()禁用主窗口的关闭按钮(在Win7下)

  21. 21

    已安装Win7 SDK。找不到winDbg

  22. 22

    在Win7 64位上安装Qwt

  23. 23

    在加密的WIN7 SSD上安装Linux Mint?

  24. 24

    侧面安装Win7后如何启动到Ubuntu?

  25. 25

    Win7在登录时重置HKCU /环境/温度和TMP

  26. 26

    安装ftp vsftpd时,出现tomcat7错误

  27. 27

    在CentOS 7上从源码安装pymol时出现错误

  28. 28

    在AMD Athlon 2(华擎主板)3.3GHz 4GB RAM和图形卡上安装ubuntu来替换win7家庭高级版64 x86

  29. 29

    2-5分钟后Internet速度变慢Win7 x64 Realtek PCIe FE 8167

热门标签

归档