On 2006-06-13, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
Allegro SVN won't compile on Windows, MSVC8:
Compiling Allegro for MSVC, optimised statically linked. Please wait...
gcc -O -Wall -Werror -o obj/msvc/runner.exe src/misc/runner.c
obj/msvc/runner.exe C:/PROGRA~1/MICROS~3/VC/bin/cl @ -nologo
-DALLEGRO_STATICLINK -DALLEGRO_SRC -W1 -Gd -MT -O2 -GL
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -I. -I./include
-Foobj/msvc/alleg_s/allegro.obj -c src/allegro.c
allegro.c
c:\cygwin\usr\src\4.2\include\allegro/file.h(42) : error C2143: syntax
error : missing '{' before '__cdecl'
c:\cygwin\usr\src\4.2\include\allegro/file.h(58) : error C2143: syntax
error : missing '{' before '__cdecl'
MSVC doesn't like uint64_t?
Looks like it. I guess an MSVC-specific #define uint64_t <whatever>
needs to be added to include/allegro/platform/almsvc.h
(not include/allegro/platform/astdint.h).
Then the same needs to happen for other platforms that use
#define ALLEGRO_GUESS_INTTYPES_OK, namely:
albcc32.h (nobody has checked whether this has stdint.h yet)
aldjgpp.h (unless we decide to drop support for older versions)
alwatcom.h (unless we decide to drop support for older versions)
I guess nobody else has tried to compile the SVN version with MSVC for
nearly a month?