Borland C++ 5.5 Compiler

Aug 19, 2011 at 2:51pm
Is it possible to link a dll-module to a program with that compiler? I was trying to link a small database-program with the dll containing the sqlite-database, but without success. Borland always says something about "unresolved externals" in this sqlite-dll. I read some documentation about this Borland compiler and they mention only linking program modules to LIB-libraries, not DLL-libraries (what is the difference between LIB and DLL?).
With another compiler for instance gnu c, I have no problems to link this sqlite dll-module to my program.
I also tried to create my own Borland made LIB-module for sqlite (I have the source files), but got many compile errors.

Aug 19, 2011 at 3:48pm
In Windows, to link with a .dll, you need the import library (.lib). The .lib file simply contains stubs in order for the linker to find references that are defined in the .dll file.
Aug 20, 2011 at 12:08pm
I made it this way:

1) implib sqlite.lib sqlite.dll -->no errors, sqlite.lib was created
2) bcc32 -c -tWC -tWR prog.c -->no errors, prog.obj was created
3) ilink32 /Tpe /ap prog.obj, prog.exe, sqlite.lib -->error: unresolved external '__setargv__' referenced from root

What went wrong?
Topic archived. No new replies allowed.