Subject: Re: c++ prob
To: None <netbsd-help@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 04/29/2002 19:13:10
On Mon, Apr 29, 2002 at 03:33:58PM +0100, Patrick Welche wrote:
> Now for the repeatable test. Create a directory containing:
>
> Makefile:
Now after Urban's hints:
PROG_CXX=this
SRCS=this.cc
MKMAN=no
.include <bsd.prog.mk>
> this.cc:
>
> #include <list>
> #include <iostream>
>
> int main()
> {
> cout<<"Hello World!\n";
>
> return 0;
> }
>
> Then type "make dependall" and watch the errors scroll by. Now for the oddity:
> It works on NetBSD-1.5X/i386 (egcs-2.91.66),
> and NetBSD-1.5ZC/acorn32 (egcs-2.91.66), but not on NetBSD-1.5ZC/i386 (2.95.3).
Now upgraded 1 of the 2 NetBSD-1.5ZC/i386 boxen, and it works on it, so
24 April broken
29 April works
where broken means:
mkdep -a /tmp/this/this.cc
/usr/src/tools/obj.i386/tools.NetBSD-1.5ZC-i386/bin/i386--netbsdelf-c++ -O2 -pip
e -Werror -nostdinc++ -isystem /usr/include/g++ -nostdinc -isystem /usr/includ
e -c /tmp/this/this.cc
In file included from /usr/include/g++/stl_algobase.h:39,
from /usr/include/g++/list:30,
from /tmp/this/this.cc:1:
/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
...
Cheers,
Patrick