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
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)