Re: [AD] 4.1.1 and cvs have linking problems with debug library under linux

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


On Sun, Sep 08, 2002 at 09:32:55PM +1000, Peter Wang wrote:
> +/* This is conditional because configure may have disabled VGA support */
> +#ifdef ALLEGRO_LINUX_VGA
> +   #include "allegro/internal/aintvga.h"
> +#endif

You have to include aintern.h too, otherwise you get such errors during
allegro build:

gcc -DHAVE_CONFIG_H -Iinclude -Iinclude/allegro -I./include -I./include/allegro -I.  -I/usr/X11R6/include  -pipe  -O2 -funroll-loops -ffast-math -fomit-frame-pointer -Wall -DALLEGRO_LIB_BUILD -c ./src/unix/usigalrm.c -o obj/unix/alleg/usigalrm.o
In file included from include/allegro/platform/aintlnx.h:262,
                 from include/allegro/platform/aintunix.h:112,
                 from ./src/unix/usigalrm.c:27:
include/allegro/internal/aintvga.h: In function `_vsync_in':
include/allegro/internal/aintvga.h:99: `_timer_use_retrace' undeclared (first use in this function)
include/allegro/internal/aintvga.h:99: (Each undeclared identifier is reported only once
include/allegro/internal/aintvga.h:99: for each function it appears in.)
include/allegro/internal/aintvga.h: In function `_write_hpp':
include/allegro/internal/aintvga.h:115: `_timer_use_retrace' undeclared (first use in this function)
include/allegro/internal/aintvga.h:116: `_retrace_hpp_value' undeclared (first use in this function)
make: *** [obj/unix/alleg/usigalrm.o] Error 1



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