From: "Alex Vinokur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro demo compilation Date: 4 Aug 2002 19:46:25 GMT Lines: 121 Message-ID: References: <1028307963 DOT 378240 AT queeg DOT ludd DOT luth DOT se> <1028398716 DOT 710521 AT queeg DOT ludd DOT luth DOT se> <1028476193 DOT 984195 AT queeg DOT ludd DOT luth DOT se> NNTP-Posting-Host: pop09-2ras2-p49.barak.net.il (212.150.105.49) X-Trace: fu-berlin.de 1028490385 38126127 212.150.105.49 (16 [79865]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Martin Str|mberg" wrote in message news:1028476193 DOT 984195 AT queeg DOT ludd DOT luth DOT se... > Alex Vinokur wrote: > : Here is the readme.djgpp file in gcc 3.1 > : news:aiij4u$14h0t8$1 AT ID-79865 DOT news DOT dfncis DOT de > > ??? Where? news:aiij4u$14h0t8$1 AT ID-79865 DOT news DOT dfncis DOT de (only via NNTP server, not via Google) > > : I tried to find some information in this file in order to compile the Allegro Demo. > : However, I didn't find such nformation. > > You have problems with va_list and such, right? Here are my problems. %cd C:\DJGPP\allegro\demo % gcc demo.c demo.c:22:21: allegro.h: No such file or directory (ENOENT) demo.c:38: `FALSE' undeclared here (not in a function) demo.c:39: `FALSE' undeclared here (not in a function) demo.c:40: `FALSE' undeclared here (not in a function) demo.c:44: parse error before '*' token [--omitted--] ------------------------------------------ File demo.c has been changed Line #include "allegro.h" has been changed by the line #include "../include/allegro.h" ------------------------------------------ % gcc demo.c In file included from ../include/allegro/base.h:26, from ../include/allegro.h:27, from demo.c:22: c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for `va_list' c:/djgpp/include/stdio.h:35: previous declaration of `va_list' In file included from ../include/allegro/base.h:36, from ../include/allegro.h:27, from demo.c:22: ../include/allegro/internal/alconfig.h:29:44: allegro/platform/alplatf.h: No such file or directory (ENOENT) ../include/allegro/internal/alconfig.h:51:8: #error platform not supported ../include/allegro/internal/alconfig.h:318:8: #error endianess not defined In file included from ../include/allegro/system.h:137, from ../include/allegro.h:29, from demo.c:22: ../include/allegro/inline/system.inl:26:27: allegro/debug.h: No such file or directory (ENOENT) In file included from ../include/allegro/gfx.h:384, from ../include/allegro.h:40, from demo.c:22: ../include/allegro/inline/gfx.inl:26:27: allegro/debug.h: No such file or directory (ENOENT) In file included from ../include/allegro/inline/gfx.inl:30, from ../include/allegro/gfx.h:384, from ../include/allegro.h:40, from demo.c:22: ../include/allegro/inline/asm.inl:28:42: allegro/platform/al386gcc.h: No such file or directory (ENOENT) In file included from ../include/allegro/draw.h:62, from ../include/allegro.h:42, from demo.c:22: ../include/allegro/inline/draw.inl:26:27: allegro/debug.h: No such file or directory (ENOENT) In file included from ../include/allegro/rle.h:41, from ../include/allegro.h:43, from demo.c:22: ../include/allegro/inline/rle.inl:26:27: allegro/debug.h: No such file or directory (ENOENT) In file included from ../include/allegro/inline/fmaths.inl:28, from ../include/allegro/fmaths.h:38, from ../include/allegro.h:57, from demo.c:22: ../include/allegro/inline/asm.inl:28:42: allegro/platform/al386gcc.h: No such file or directory (ENOENT) > > What do you see at the end of the gcc readme.djgpp file? --- include/sys/djtypes.h~1 Tue Dec 14 06:56:16 1999 +++ include/sys/djtypes.h Mon Feb 4 16:20:40 2002 @@ -12,7 +12,12 @@ #define __DJ_ssize_t typedef int ssize_t; #define __DJ_time_t typedef unsigned int time_t; #define __DJ_uid_t typedef int uid_t; + +#if __GNUC__>=3 +#define __DJ_va_list typedef __builtin_va_list va_list; +#else #define __DJ_va_list typedef void *va_list; +#endif #if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) /* wchar_t is now a keyword in C++ */ > > Alas the readme.djgpp file does not make it clear that you need to > apply that patch if you're using this gcc on DJGPP v2.03. > > > Right, > > MartinS So, how can I compile the Allegro demo ? Regards, ================== Alex Vinokur mailto:alexvn AT go DOT to http://up.to/alexvn ==================