Compile error

Vern Paxson vern at ee.lbl.gov
Sun Jul 8 23:30:07 PDT 2001


> c++ -I. -O -I../libpcap-0.4  -Ilinux-include -c Func.cc
> Func.cc: In function `void do_fmt (const char *&, Val *, ODesc *)':
> Func.cc:244: `localtime' undeclared (first use this function)
> Func.cc:244: (Each undeclared identifier is reported only once for each
> function it appears in.)
> Func.cc:244: `strftime' undeclared (first use this function)

Try adding an include of <time.h> at the beginning of Func.cc and see
if that resolves the problem.

		Vern



More information about the Bro mailing list