[AD] Re: binary compatibility check

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, 2006-01-16 at 23:19 +0100, Elias Pschernig wrote:
> 
> Committed it. If we don't want the forward check (i.e. 4.2.1 compiled
> program should work with 4.2.0 DLL), we can remove that one "dll_wip <
> ALLEGRO_WIP_VERSION" clause.
> 

Apparently, this broke the windows build. It seems, a function declared
with AL_INLINE can't have #ifs inside it with my mingw version. I'm not
really sure what's going on, anyone has an idea how to fix it?

This was the error message:

gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mcpu=i586 -O2-funroll-loops -ffast-math  -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/allegro.o -c src/allegro.c
In file included from include/allegro.h:27,
                 from src/allegro.c:23:
include/allegro/system.h:87:1: directives may not be used inside a macro argument
include/allegro/system.h:85:30: unterminated argument list invoking macro "AL_INLINE"
In file included from include/allegro.h:27,
                 from src/allegro.c:23:
include/allegro/system.h:91: parse error before "if"
src/allegro.c: In function `allegro_exit_stub':
src/allegro.c:299: warning: implicit declaration of function `allegro_exit'
src/allegro.c: At top level:
src/allegro.c:418: warning: type mismatch with previous implicit declaration
src/allegro.c:299: warning: previous implicit declaration of `allegro_exit'
src/allegro.c:418: warning: `allegro_exit' was previously implicitly declared to return `int'
c:\mingw\bin\mingw32-make.exe: *** [obj/mingw32/alleg/allegro.o] Error 1

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/