C (67/207)

From:Volker Barthelmann
Date:08 Dec 99 at 22:02:40
Subject:Re: Problem compiling this source... (VBCC)

From: Volker Barthelmann <volker@vb.franken.de>

On Tue, 7 Dec 1999, Allan Odgaard wrote:

> In an attempt to compile 'szip' for Amiga then I get the following error, with
> the attached source:
>
> error 28 in line 306 of "rangecod.c": redeclaration of var <__inline> with new
> storage-class
> >void __inline M_decode_update(freq sy_f,freq lt_f,freq tot_f)
>
> (using "vc -+ rangecod.c")
>
> I have absolutely no idea of what it means, but if I remove 'Inline' then it
> works. Can anybody help me out?

Well, remove __inline. :-) It's a compiler-specific extension. vbcc will
nevertheless inline functions based on some heuristics.

> Btw: If I use the "-O3" option for the entire source, then I get this error:
> ----------------------------------------------------------------------------
> error 158 in line 139 of "qsmodel.c": internal error 0 in line 380 of file
> Rest:vbcc/machines/m68k/machine.c !!
> aborting...
> unexpected end of file
> 1 error found!
> ----------------------------------------------------------------------------

It's hard to say anything about it without a source to reproduce it. I did
modify the line that caused this error since 0.7, so this problem is
probably already fixed. But to be sure I'd need the source.

Volker