This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Again strange errors building eCOS for ARM
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: [ECOS] Again strange errors building eCOS for ARM
- From: Robin Farine <acnrf at dial dot eunet dot ch>
- Date: 11 Jun 2001 10:23:41 +0200
- Cc: ecos-discuss at sources dot redhat dot com
- References: <3B209E57.18753.176E46@localhost> <3B208E83.CCD30C9A@redhat.com>
Jonathan Larmour <jlarmour@redhat.com> writes:
> Stefano Costa wrote:
> > //C/Clienti/arm/progetti/cdb89712/ecos/89712_install/include/cyg/ke
> > rnel/sched.inl:125: ANSI C++ forbids implicit conversion from `void
> > *' in assignment
> > make[1]: *** [src/startup.o.d] Error 1
> > make[1]: Leaving directory
> > `/c/Clienti/arm/progetti/cdb89712/ecos/89712_build/infra/v1_3_1'
> > make: *** [build] Error 2
>
> I think this must be an error in the compiler you are using. While ANSI C++
> now forbids assignment from void *s, I really wouldn't have thought it
> would forbid assignments to NULL, which is the case here.
>
> I'll have to check on this.
>
If I remember correctly, only C sources should use the NULL CPP macro since the
C++ standard specifies that the value 0 -- not (void *)0 -- represents a null
pointer to any type.
Robin