Uz som to vyriesil, ale mam problem s tym, ze vzdy mi to vypise nejake chyby…
$ make
gcc -O2 -Wall -ggdb -c parport.c -o parport.o parport.c:1: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘parport’ In file included from /usr/include/stdio.h:75,
from parport.c:2: /usr/include/libio.h:332: error: expected
specifier-qualifier-list before ‘size_t’ /usr/include/libio.h:364: error:
expected declaration specifiers or ‘…’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘…’
before ‘size_t’ /usr/include/libio.h:493: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ In
file included from parport.c:2: /usr/include/stdio.h:312: error: expected
declaration specifiers or ‘…’ before ‘size_t’
/usr/include/stdio.h:319: error: expected declaration specifiers or ‘…’
before ‘size_t’ /usr/include/stdio.h:361: error: expected declaration
specifiers or ‘…’ before ‘size_t’ /usr/include/stdio.h:363: error:
format string argument not a string type /usr/include/stdio.h:365: error:
expected declaration specifiers or ‘…’ before ‘size_t’
/usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:684: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘fwrite’ /usr/include/stdio.h:706: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘fwrite_unlocked’ In file included from
/usr/include/stdio.h:906,
from parport.c:2: /usr/include/bits/stdio2.h:24: error: expected declaration
specifiers or ‘…’ before ‘size_t’ /usr/include/bits/stdio2.h:26:
error: expected declaration specifiers or ‘…’ before ‘size_t’
/usr/include/bits/stdio2.h:53: error: expected declaration specifiers or
‘…’ before ‘size_t’ /usr/include/bits/stdio2.h:54: error: expected
declaration specifiers or ‘…’ before ‘size_t’
/usr/include/bits/stdio2.h:56: error: expected declaration specifiers or
‘…’ before ‘size_t’ /usr/include/bits/stdio2.h:57: error: expected
declaration specifiers or ‘…’ before ‘size_t’
/usr/include/bits/stdio2.h:62: error: expected declaration specifiers or
‘…’ before ‘size_t’ /usr/include/bits/stdio2.h: In function
‘snprintf’: /usr/include/bits/stdio2.h:65: error: ‘__n’ undeclared
(first use in this function) /usr/include/bits/stdio2.h:65: error: (Each
undeclared identifier is reported only once /usr/include/bits/stdio2.h:65:
error: for each function it appears in.) /usr/include/bits/stdio2.h: At top
level: /usr/include/bits/stdio2.h:75: error: expected declaration specifiers
or ‘…’ before ‘size_t’ /usr/include/bits/stdio2.h: In function
‘vsnprintf’: /usr/include/bits/stdio2.h:78: error: ‘__n’ undeclared
(first use in this function) /usr/include/bits/stdio2.h: At top level:
/usr/include/bits/stdio2.h:220: error: expected declaration specifiers or
‘…’ before ‘size_t’ /usr/include/bits/stdio2.h: In function
‘gets’: /usr/include/bits/stdio2.h:228: error: ‘size_t’ undeclared
(first use in this function) /usr/include/bits/stdio2.h:229: error: too many
arguments to function ‘__gets_chk’ /usr/include/bits/stdio2.h: At top
level: /usr/include/bits/stdio2.h:233: error: expected declaration specifiers
or ‘…’ before ‘size_t’ /usr/include/bits/stdio2.h:238: error:
expected declaration specifiers or ‘…’ before ‘size_t’
/usr/include/bits/stdio2.h: In function ‘fgets’:
/usr/include/bits/stdio2.h:247: error: ‘size_t’ undeclared (first use in
this function) /usr/include/bits/stdio2.h:250: error: too many arguments to
function ‘__fgets_chk’ /usr/include/bits/stdio2.h:252: error: expected
‘)’ before ‘__n’ /usr/include/bits/stdio2.h:253: error: too many
arguments to function ‘__fgets_chk_warn’ /usr/include/bits/stdio2.h: At
top level: /usr/include/bits/stdio2.h:258: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk’
/usr/include/bits/stdio2.h:261: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__fread_alias’
/usr/include/bits/stdio2.h:265: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__fread_chk_warn’
/usr/include/bits/stdio2.h:274: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/bits/stdio2.h:319: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk’
/usr/include/bits/stdio2.h:322: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_alias’
/usr/include/bits/stdio2.h:326: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk_warn’
/usr/include/bits/stdio2.h:335: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘fread_unlocked’ make: ***
[parport.o] Chyba 1