In message <7ca001c854.b...@ron1954.woosh.co.nz> Ron <b...@woosh.co.nz> wrote:
> In message <7b0f9ac754.b...@ron1954.woosh.co.nz> > Ron <b...@woosh.co.nz> wrote: > > > stdarg.h and stddef.h have references from other files, more-so stddef.h > > It appears 4.1.2 and 4.7.4 dont have these files, is it ok to delete the > > #include 's referring to them? > > > > It is not an issue I have run into compiling, but Cproto uses the cpp > > and traces everything in the files. > > > > Another thing it errors with is size_t, maybe the cproto grammar.y file > > needs updating. > > > I have added two empty files stdarg.h and stddef.h and that has stopped > those errors. > > The remaining errors seem to be related to size_t and wchar_t > > typedef long long size_t; > typedef long long wchar_t; > > stops those errors, but what are the sensible values to use? > Copying over stddef.h from gcc3 answers this properly, and probably fixes other type problems that I haven't encountered yet. Grepping the 4.7.4 includes doesn't find what is in the gcc3 stddef.h, there must be a good reason why this isn't in gcc4xx, and would it break things by adding stddef.h in the normal place? You can try Cproto out if you wish. The header files will need to be added to gcc4xx to avoid the said errors http://homepages.woosh.co.nz/ron.may/cproto.zip simple useage cproto ackermann.c or cproto -E 0 ackermann.c runs without the cpp Ron M. _______________________________________________ GCCSDK mailing list gcc@gccsdk.riscos.info Bugzilla: http://www.riscos.info/bugzilla/index.cgi List Info: http://www.riscos.info/mailman/listinfo/gcc Main Page: http://www.riscos.info/index.php/GCCSDK