This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Again strange errors building eCOS for ARM


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]