Subject: Re: http proxy (and STL help)
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 05/25/2002 21:24:08
On Sat, 25 May 2002, Ingolf Steinbach wrote:
> 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
> first of all, make sure that you use g++ rather than gcc,
> (but I'm sure you already have verified that).
Yes, I should have noted 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
I don't find any files with that other than in the /usr/include/g++/*.h
files it is using.
> 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.
So now that I found them, what do I do?
Off-list, I was told that the software (www_proxy) builds fine under newer
NetBSD 1.5ZC's gcc version 2.95.3 20010315 (release) (NetBSD nb1). (Thank
you, Martin.)
Can I easily make it work with gcc version egcs-2.91.66 19990314
(egcs-1.1.2 release) ?
Jeremy C. Reed
http://www.reedmedia.net/