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]
Other format: [Raw text]

RE: #include <new> in mqueue.cxx


OK, now the question is why does it not work in the first place then? 

I am using gcc 3.0.4....

I have tried the verious enviroment setting to make the compliler search a include path containing a "new" header. But so far without success.

Also, I am not quite sure if I agree with the statement that the "new" header belongs to the compiler and therefore can be used.
Afterall, the library has to "backup" the headerfiles - And the "new" header is based on a library that is not being incuded in the final build...

And as mqueue.cxx seems to be the only file that requires the "new" header - why does it require it? Why not change mqueue.cxx so that is does not require a header that no other files requires??

Regards,
Michael

> -----Ursprüngliche Nachricht-----
> Von: Gary Thomas [mailto:gary@chez-thomas.org]
> Gesendet: Montag, 15. Juli 2002 02:30
> An: Jones, Michael
> Cc: eCos Discussion
> Betreff: Re: [ECOS] #include <new> in mqueue.cxx
> 
> 
> On Sun, 2002-07-14 at 12:28, Jones, Michael wrote:
> > Hello!
> > 
> > I am finding the following error:
> > 
> > i386-elf-gcc -c <omitted> 
> /ecos-c/cygwin/i386/ecos/packages/compat/posix/current/src/mqueue.cxx
> > 
> > 
> /ecos-c/cygwin/i386/ecos/packages/compat/posix/current/src/mqu
> eue.cxx:82:79: new: No such file or directory
> > <internal>: In function `void* mq_open(const char*, int, ...)':
> > <internal>:302: too many arguments to function `void* 
> operator new(long unsigned int)'
> > 
> /ecos-c/cygwin/i386/ecos/packages/compat/posix/current/src/mqu
> eue.cxx:302: at this point in file
> > make[1]: *** [src/mqueue.o.d] Error 1
> > make[1]: Leaving directory `/i386/net/compat/posix/current'
> > make: *** [build] Error 2
> > 
> > It seems that there is no <new> header in the eCos 
> repository therefore IMHO the above error is correct and 
> including the new header in the first place is to be reconsidered....
> > 
> > Any comments? 
> 
> The file <new.h> comes from the compiler itself - it's not provided
> with eCos (but we still need to use it)
> 
> 

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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