Subject: Re: http proxy (and STL help)
To: None <netbsd-help@netbsd.org>
From: Ingolf Steinbach <ingolf-200205@steinba.ch>
List: netbsd-help
Date: 05/25/2002 13:56:38
Jeremy C. Reed wrote:
> /usr/include/g++/stl_relops.h: In function `bool operator !=(const T &,
> const T
> &)':
> In file included from /usr/include/g++/stl_algobase.h:39,
>                  from /usr/include/g++/vector:30,
>                  from /usr/include/tcp++/tcp_ip_ruleset.h:9,
>                  from /usr/include/tcp++/tcp_server.h:23,
>                  from proxy.h:8,
>                  from proxy.c:4:
> /usr/include/g++/stl_relops.h:37: template with C linkage
> /usr/include/g++/stl_relops.h: In function `bool operator >(const T &,
> const T &
> )':

Jeremy,

first of all, make sure that you use g++ rather than gcc,
(but I'm sure you already have verified that).

Then, you should search for

    extern "C"

in the corresponding source file and all header files which
are included by this file. Probably, stl_relops.h is included
in from a section enclosed in extern "C" {...} (which means:
functions in this section have C linkage). As C does not know
references and templates, this leads to the error message.

Good luck!

    Ingolf