[SDL] Can't build SDL test project using Borland C++ command line tools

Benoit Renard benoit at gawab.com
Thu May 1 06:18:17 PDT 2008


Apologies for starting another thread on this. I don't know how to post 
a reply to my previous thread.

Eiffelmedia has clearer instructions on how to make an SDL.lib file for 
Borland C++, but nothing on creating SDLmain.lib:

impdef SDL.def SDL.dll
implib SDL.lib SDL.def

It should probably be implib -a -c SDL.lib SDL.def for the second line, 
according to Chris Dion's instructions. So, now that I had an SDL.lib 
file, I tried following the rest of Chris Dion's instructions. However, 
it doesn't work. I even tried Martin Bickel's hint of using -b to make 
enums have the size of an int.

Using
bcc32 -b -tW -DWIN32 -I"C:\Program Files\bcc55\include\SDL" sdltest.cpp 
sdl_main.c > errors.txt
I get:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
sdltest.cpp:
Error E2176 c:\Program Files\bcc55\include\SDL/SDL_config_win32.h 62: 
Too many types in declaration
Error E2176 c:\Program Files\bcc55\include\SDL/SDL_config_win32.h 63: 
Too many types in declaration
Error E2238 c:\Program Files\bcc55\include\_stddef.h 133: Multiple 
declaration for 'size_t'
Error E2344 c:\Program Files\bcc55\include\SDL/SDL_config_win32.h 66: 
Earlier declaration of 'size_t'
Error E2021 c:\Program Files\bcc55\include\SDL/SDL_stdinc.h 114: Array 
must have at least one element
Error E2021 c:\Program Files\bcc55\include\SDL/SDL_stdinc.h 115: Array 
must have at least one element
Warning W8055 c:\Program Files\bcc55\include\SDL/SDL_endian.h 147: 
Possible overflow in shift operation in function SDL_Swap64(unsigned long)
Warning W8055 c:\Program Files\bcc55\include\SDL/SDL_endian.h 150: 
Possible overflow in shift operation in function SDL_Swap64(unsigned long)
Warning W8057 sdltest.cpp 9: Parameter 'argc' is never used in function 
SDL_main(int,char * *)
Warning W8057 sdltest.cpp 9: Parameter 'args' is never used in function 
SDL_main(int,char * *)
*** 6 errors in Compile ***
SDL_main.c:
Error E2176 C:\Program Files\bcc55\include\SDL\SDL_config_win32.h 62: 
Too many types in declaration
Error E2176 C:\Program Files\bcc55\include\SDL\SDL_config_win32.h 63: 
Too many types in declaration
Error E2021 C:\Program Files\bcc55\include\SDL\SDL_stdinc.h 114: Array 
must have at least one element
Error E2021 C:\Program Files\bcc55\include\SDL\SDL_stdinc.h 115: Array 
must have at least one element
Warning W8055 C:\Program Files\bcc55\include\SDL\SDL_endian.h 147: 
Possible overflow in shift operation in function SDL_Swap64
Warning W8055 C:\Program Files\bcc55\include\SDL\SDL_endian.h 150: 
Possible overflow in shift operation in function SDL_Swap64
Warning W8057 SDL_main.c 386: Parameter 'hInst' is never used in 
function WinMain
Warning W8057 SDL_main.c 386: Parameter 'hPrev' is never used in 
function WinMain
Warning W8057 SDL_main.c 386: Parameter 'szCmdLine' is never used in 
function WinMain
Warning W8057 SDL_main.c 386: Parameter 'sw' is never used in function 
WinMain
*** 4 errors in Compile ***


More information about the SDL mailing list