2

Debian Wheezy 64 ビット オペレーティング システムでコンパイルしようとしている Python API を使用するコードがあり、コンパイル時に次のエラーが発生します。

/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/include/

前もって感謝します

4

0 に答える 0