Borland c++

Hi, I want to compile my sdl programs under Windows with Borland c++ 5.02,
I’ve read the tutorial in the Faqs but my problem is unresolved. My steps are:

  • implib -c sdl.lib sdl.dll

To create the LIB file, sdl.dll is taken by www.libsdl.org(Runtime for Win32)

  • bcc32 -c -tW -DWIN32 examples.c SDL_main.c

To compile obj files, SDL_main.c is taken for the sources

  • ilink32 -aa -Tpe -c examples.obj SDL_main.obj sdl.lib import32.lib c0w32.obj
    cw32.lib

    To link

I obtain “undefinited reference to SDL…” because the linker can’t find
the references to SDL functions. Why?

thanks

gilgalad wrote:

  • implib -c sdl.lib sdl.dll

Try this

implib -a -c sdl.lib sdl.dll

bye,
Enzo.

I obtain “undefinited reference to SDL…” because the linker can’t find
the references to SDL functions. Why?

Have you checked, if sdl.dll exports any functions?
To check it you can use tlib (call “tlib sdl.lib, list” will create a file
named list.lst which contains a list of all functions in sdl.lib)

gilgalad wrote:

  • implib -c sdl.lib sdl.dll

Try this

implib -a -c sdl.lib sdl.dll

I’ve already tried it, but implib doesn’t accept the -a option :frowning:

thank youOn Wed, 29 May 2002 13:38:37 +0200 Enzo wrote:

kalidostor wrote:

Try this

implib -a -c sdl.lib sdl.dll

I’ve already tried it, but implib doesn’t accept the -a option :frowning:

Are you using this version of borland c++ ?

ftp://ftp.borland.com/pub/bcppbuilder/techpubs/bcb5/b5std.zip

I use it and implib works well.

Enzo.