Code: Alles auswählen
typedef long unsigned int size_t
Code: Alles auswählen
#define size_t long unsigned int
gcc -O2 -I. -Wall -c -o tfget.o tfget.c
In file included from /usr/include/bits/types.h:31,
from /usr/include/unistd.h:186,
from topfield.h:31,
from tfget.c:21:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: duplicate ‘unsigned’
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: two or more data types in declaration specifiers
tfget.c: In function ‘main’:
tfget.c:72: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
tfget.c:73: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
make: *** [tfget.o] Fehler 1
despo@despo-laptop:~/Desktop/tfdisk-020907$ make
gcc -O2 -I. -Wall -c -o tfget.o tfget.c
In file included from /usr/include/bits/types.h:31,
from /usr/include/unistd.h:186,
from topfield.h:31,
from tfget.c:21:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: duplicate ‘unsigned’
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: two or more data types in declaration specifiers
tfget.c: In function ‘main’:
tfget.c:72: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
tfget.c:73: warning: pointer targets in passing argument 1 of ‘strtol’ differ in signedness
make: *** [tfget.o] Fehler 1