PDA

View Full Version : Linking *.lib files



Luuk van Venrooij
29-04-2007, 07:09 PM
Ik have 2 *.lib that I want to link inside my excutable. Does anyone know how? Googled and searched the help but couldn`t find any good information about it :?

JernejL
29-04-2007, 07:39 PM
You need to create DLL code or compile OBJ files, and link those, and even delphi only links BCB / delphi compiled obj files, and not microsoft's format, no idea about freepascal tho.

Setharian
30-04-2007, 06:12 AM
speaking of this, I have an opposite problem....have a library in Delphi which is intended to be used also by C(++)....and I cannot generate a .lib file....found implib file from Digital Mars which generates a .lib file out of the compiled .dll, however evidently it is OMF format and not COFF format MS uses....then found some russian tool which was supposed to transform it to COFF format, however MS C++ compiler doesn't want to link with this converted .lib file, saying it has unresolved external references....I guess I'll have to go the LoadLibrary/GetProcAddress way....