hello, how do I add new libraries with Borland 5.01 such as fmod and sdl? I have tried to do this in weeks now just trials and errors
hello, how do I add new libraries with Borland 5.01 such as fmod and sdl? I have tried to do this in weeks now just trials and errors
havent used borland for a long time, but iirc, first, you have to install it (i got cheap and just put the headers in the include folder in the compiler dir and the libraries in the lib folder). include the headers. then -lSDL -lSDLmain for SDL when youre linking.
I have copied all the header files to the include directory and the lib file to its lib directory but the main problem is how do I link them...
add "-lSDL -lSDLmain" to the line when you link your program.
yeah, but where? Compiler Defines in the project options?
When I try to compile with SDL I got these errors:
Info :Compiling C:\bc5\bin\sdl2.cpp
Error: SDL_types.h(81,53):Array must have at least one element
Error: SDL_types.h(82,53):Array must have at least one element
Error: SDL_types.h(83,53):Array must have at least one element
Error: SDL_types.h(84,53):Array must have at least one element
Error: SDL_video.h(201,24):Bit field too large
Error: sdl2.cpp(7,11):Call to undefined function 'atexit'
are you using an ide or compiling from command line?
I have tried both of them. :/
I have 5.02, and I have a small question. Can you even use command line?
Stan The Man. Beatles fan
When I was a child,
I spoke as a child,
I thought as a child,
I reasoned as a child.
When I became a man,
I put childish ways behind me"
(the holy bible, Paul, in his first letter to the Cor. 13:11)
yeah, in dos I can, like bcc32 -l sdlmain etc...