adding libraries with borland

This is a discussion on adding libraries with borland within the Game Programming forums, part of the General Programming Boards category; hello, how do I add new libraries with Borland 5.01 such as fmod and sdl? I have tried to do ...

  1. #1
    Tomi
    Guest

    adding libraries with borland

    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

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    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.

  3. #3
    Tomi
    Guest
    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...

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    add "-lSDL -lSDLmain" to the line when you link your program.

  5. #5
    Tomi
    Guest

    Question

    yeah, but where? Compiler Defines in the project options?

  6. #6
    Tomi
    Guest
    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'

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    are you using an ide or compiling from command line?

  8. #8
    Tomi
    Guest
    I have tried both of them. :/

  9. #9
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    5.02

    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)

  10. #10
    Tomi
    Guest
    yeah, in dos I can, like bcc32 -l sdlmain etc...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding new libraries?
    By Frantic- in forum C++ Programming
    Replies: 2
    Last Post: 01-28-2005, 08:55 PM
  2. clearscreen using borland libraries
    By ryan_germain in forum C++ Programming
    Replies: 2
    Last Post: 08-04-2004, 10:50 AM
  3. Borland, libraries, and template member functions
    By roktsyntst in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2003, 10:52 PM
  4. Borland and Libraries
    By drdroid in forum C++ Programming
    Replies: 1
    Last Post: 05-25-2003, 10:06 PM
  5. Missing header files and libraries with Borland
    By quagsire in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2003, 06:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21