2

我有一个使用 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 位软件包。我也安装ia32-libsg++-multilibWheezy,但仍然有这个愚蠢的错误。

我也打开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/include/

提前致谢

4

0 回答 0