我有一个使用Python API的代码,我将在Debian Wheezy 64位操作系统上编译,并在编译时遇到以下错误:
/usr/include/python2.7/pyport.h:873:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
我已经完成了搜索但无法找到我应该如何使用32位软件包。我还在我的Wheezy上安装了ia32-libs
和g++-multilib
,但仍有这个愚蠢的错误。
我还打开了pyport.h
并找到了错误行:
#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some recent
* 32-bit platforms using gcc. We try to catch that here at compile-time
* rather than waiting for integer multiplication to trigger bogus
* overflows.
*/
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#endif
在其他主题中,我在多拱系统上得到的应该是这样的文件夹: 的/ usr /包括/
提前致谢