On Sun, 2006-04-23 at 12:27 +0200, Guido Serassio wrote:
> 
> make[4]: Entering directory `/home/serassio/squid3/src'
> make[4]: `tests/testAuth' is up to date.
> make[4]: `tests/testBoilerplate' is up to date.
> depbase=`echo tests/testHeader_HttpHeader.o | sed 
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
> if g++ -DHAVE_CONFIG_H 
> -DDEFAULT_CONFIG_FILE=\"/usr/local/squid3/etc/squid.conf\" -I. -I. 
> -I../include -I.
>   -I. -I../include -I../include -I../lib/libTrie/include 
> -I../lib/cppunit-1.10.0/include -I ../lib/cppunit-
> 1.10.0/include   -I/usr/include/libxml2 -Werror -Wall -Wpointer-arith 
> -Wwrite-strings -Wcomments  -D_REENT
> RANT -g -O2 -MT tests/testHeader_HttpHeader.o -MD -MP -MF 
> "$depbase.Tpo" -c -o tests/testHeader_HttpHeader
> .o tests/testHeader_HttpHeader.cc; \
> then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo";
> exit 1; fi
> In file included from HttpHeader.h:38,
>                   from tests/testHeader_HttpHeader.cc:4:
> HttpHeaderRange.h: In static member function `static void*
>     HttpHdrRangeSpec::operator new(unsigned int)':
> HttpHeaderRange.h:66: error: `assert' undeclared (first use this
> function)
> HttpHeaderRange.h:66: error: (Each undeclared identifier is reported
> only once
>     for each function it appears in.)
> HttpHeaderRange.h: In static member function `static void*
>     HttpHdrRange::operator new(unsigned int)':
> HttpHeaderRange.h:115: error: `assert' undeclared (first use this
> function)
> make[4]: *** [tests/testHeader_HttpHeader.o] Error 1 


That means HttpHeaderRange.h isn't compileable when HttpHeadere is
included on its own.

Try adding #include "squid.h" to the top of HttpHeaderRange.h.


Tell me, do you inlines enabled or disabled?

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to