size_t - kde ho najdu

Ladislav Vaiz spam na nagano.cz
Úterý Listopad 21 12:19:02 CET 2006


strncpy je v <string.h>. Pokud vam ani pote kompilace neprojde, poslete 
relevantni cast zdrojaku. 
La'd"a


On Mon, 20 Nov 2006, Michal Jezek wrote:

> Dobry den.
>     Mam problemek pri kompilaci milter-rcptfilter. ./configure probehne v poradku (zadny eror tam neni), make ale nahlasi nize uvedene "sprostarny". Kde najdu funkce size_t a ret? V jake knihovne nebo baliku se ty mrsky skovavaji. Nejak je nemuzu vypatrat :-(
>
>                    Michal Jezek
>
> make
> gcc -g -O2 -Wall -D_XOPEN_SOURCE=500    -D_BSD_SOURCE   -c -o util.o util.c
> util.c:43: error: syntax error before "strncpy"
> util.c:44: warning: return type defaults to `int'
> util.c: In function `strncpy':
> util.c:46: error: syntax error before "size_t"
> util.c:48: error: `size_t' undeclared (first use in this function)
> util.c:48: error: (Each undeclared identifier is reported only once
> util.c:48: error: for each function it appears in.)
> util.c:48: error: syntax error before "ret"
> util.c:50: error: `ret' undeclared (first use in this function)
> make: *** [util.o] Error 1
>


Další informace o konferenci Linux