Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gcc 4.8 を使用して RHEL 7 64 ビットで 32 ビット C アプリケーションをコンパイルしようとしています。コンパイラ エラーが発生します/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory。32 ビット アプリをコンパイルおよびリンクするには、どうすればよいですか?
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
RHEL 7 64 ビットで gcc 4.8 32 ビット プログラムをコンパイルするには、2 つのことを行う必要があります。
すべての 32 ビット gcc 4.8 開発ツールが完全にインストールされていることを確認します。
sudo yum install glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 ncurses-devel.i686
-m32 フラグを使用してプログラムをコンパイルする
gcc pgm.c -m32 -o pgm