Hello.
I have been unable to build the SDL with the Borland’s free C++
compiler. Here are the steps I took:
- Downloaded the SDL 1.2.5 source code.
- Extracted the ZIP file into a directory.
- Opened and read the \Borland.html.
- Extracted the \Borland.zip file into , as
instructed on the HTML document; this created a \Borland
subdirectory. - Opened a command prompt and changed the directory to
\Borland\freebcc. - Ran Borland’s make utility to build the SDL:
make -f SDL.mak
Unfortunately, this is what I got:----------------
Borland C++ 5.5.1 for Win32 Copyright © 1993, 2000 Borland
…\src\SDL_error.c:
Error E2021 …\include\SDL_types.h 95: Array must have at least one
element
*** 1 errors in Compile ***
…\src\SDL_fatal.c:
Error E2021 …\include\SDL_types.h 95: Array must have at least one
element
*** 1 errors in Compile ***
…\src\SDL.c:
Error E2021 …\include\SDL_types.h 95: Array must have at least one
element
*** 1 errors in Compile ***
I have tried looking at the indicated source files, but could not spot
what exactly was causing the error. I tried the FAQ on SDL’s Web site
and found an item regarding the need to make sure the compiler is
treating enums as int, but this seems to be taken care of by the make
files already, as I saw the ‘-b’ option there and as it also shows up in
the final command line.
I was very sad to find problems so early, since I was hoping to make a
good start at SDL. Has anybody else faced this problem? I would think
everybody using the Borland’s free compiler should face the same thing,
but in any case I will try starting everything from scratch, including
redownloading the compiler and the SDL source. In the meantime, I would
be really happy if somebody has some tips or suggestions on what I might
have done wrong or missed.
For what it is worth, I am running Windows XP (SP2) on a P4 1.7GHz.
Thank you,
–
Ney Andr? de Mello Zunino
Campus Computing Centre
United Nations University