Linking C .obj files into Delphi application, resolving standard C dependencies

后端 未结 3 869
萌比男神i
萌比男神i 2021-01-01 03:59

I compiled libxml2 with BCC 5.5 command line compiler, now I have lots of .obj files which I\'d like to link into my Delphi application. Unfortunately, I get lots of \"Unsat

3条回答
  •  青春惊慌失措
    2021-01-01 04:42

    Depending on the version of Delphi you have, there should be a unit called crtl.dcu with which you can link. Just use the $L directive for each .obj file in a unit that also uses crtl. You may also need to "use" other various units like Windows, WinSock, etc... The point is to provide the symbols and functions to resolve during the link phase.

    This is the same technique used to statically link in the DataSnap TClientDataSet code used to also build midas.dll.

提交回复
热议问题