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.
armhf 組み込みデバイスで gcc をコンパイルしようとしていますが、xgcc で libgcc をコンパイルしようとすると、sys/cdefs.h が見つからないと言って停止します。
libc6 と libc6-dev は既にインストールされており、cdefs.h は /usr/arm-linux-gnueabihf/sys/ にあります。
/usr/arm-linux-gnueabihf を xgcc インクルード パスに追加するにはどうすればよいですか?
パラメーターを追加します:-I/usr/arm-linux-gnueabihf コンパイル ステートメントに
-I/usr/arm-linux-gnueabihf