私はCコードの一部を持っています:
Int32 tmp = atoi("314");
エラーが発生します:
error: Int32 undeclared (first use in this function)
理由がわかりませんか?私たちを手伝ってくれますか?
多分それは#include
sの問題です:
sys/socket.h
netinet/in.h
arpa/inet.h
stdio.h
stdlib.h
string.h
strings.h
と呼ばれる標準タイプはありませんInt32
。あなたはおそらく探しています
int tmp = atoi("314");
32ビット整数が必要な場合、標準タイプはまたはでint32_t
定義されます。inttypes.h
stdint.h
Cには組み込みのタイプはありません。forとthoughをInt32
含めることができます。ただし、この場合は、おそらくを使用する必要があります。stdint.h
int32_t
uint32_t
int
int tmp = atoi("314");
Int32変数が必要な場合は、次を使用する必要があります
<arm.h>
このリンクを確認してください。http://pubs.opengroup.org/onlinepubs/009619299/apdxa.htm