Subject: c++ prob
To: None <netbsd-help@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-help
Date: 04/29/2002 13:11:39
Rather OT, but what does the error mean? admin.cc is an old file and I have
compiled it often. Yesterday I saw a strange bug in my code where a select
query sent to a postgresql database returns 1 row, but the very next line
which throws an exception if Tuples()!=1 fires. After a cleandir dependall I
now see:

/usr/src/tools/obj.i386/tools.NetBSD-1.5ZC-i386/bin/i386--netbsdelf-c++ -O2
-Wall -g -pipe  -Werror -nostdinc++ -isystem /usr/include/g++  -Wno-error
-I/usr/local/pgsql/include -I../common -I../../common -I/usr/include/g++ -nostdinc -isystem /usr/include  -c /tmp/compprob/admin/admin.cc
In file included from /usr/include/g++/stl_algobase.h:39,
                 from /usr/include/g++/list:30,
                 from /tmp/compprob/admin/admin.cc:15:
/usr/include/g++/stl_relops.h: In function `bool operator !=(const _Tp &, const _Tp &)':
/usr/include/g++/stl_relops.h:37: template with C linkage

and pages of this scroll off the screen (all in /usr/include/g++
header files). Line 15 in admin.cc is the very first c++ header
include (<list>), the only non-comment before that is the usual
#include <sys/cdefs.h>.

Any hints on where to look?

Cheers,

Patrick