Subject: Re: c++ prob
To: None <netbsd-help@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-help
Date: 04/29/2002 15:33:58
Now for the repeatable test. Create a directory containing:
Makefile:
PROG=this
SRCS=this.cc
.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).
(By works, I mean doesn't give loads of errors in the headers, not that you
actually get a working exectable as I don't LDADD+=-lstdc++ etc. in the simple
example above)
Any hints and tips?
Cheers,
Patrick