rt

解决方案 »

  1.   

    用$L a.lib
    就可以加进来了
    头文件到不知道行不行
    $L a.H
    可能要在delphi中重新写过,你试试看好了
      

  2.   

    delphi里的帮助是这样说:
    Link object fileType Parameter
    Syntax {$L filename}
    {$LINK filename}
    Scope Local
    ResThe $L parameter instructs the compiler to link the named file with the program or unit being compiled. The $L directive is used to link with code written in other languages for procedures and functions declared to be external. The named file must be an Intel relocatable object file (.OBJ file). The default extension for filename is .OBJ. If filename does not specify a directory path, then, in addition to searching for the file in the same directory as the current module, Delphi searches in the directories specified in the Search path input box on the Directories/Conditionals page of the Project|Options dialog box (or in the directories specified in the -O option on the DCC32 command line).To specify a file name that includes a space, surround the file name with single quotation s: {$L 'My file'}.
    For further details about linking with assembly language, see online Help.我想是不行的,$L 的文件是.obj类型的
      

  3.   

    我用过$L a.lib这是可以的
    头文件我是没有试过
      

  4.   

    我用过$L a.lib这是可以的
    头文件我是没有试过
      

  5.   

    对了,你已经有dll,那么你可以直接使用里面导出的函数的,就可以不要用lib文件了
      

  6.   

    你的里面有dll,那你可以直接用里面的导出函数的,那就可以不要用lib了
      

  7.   

    我把hello.lib以及dll放在工程的目录下,
    在unit1.pas 的头一行中写:{$L hello.lib}
    编译出错:
    [Error] unit1.pas(26): Bad object file format: 'C:\lib\hello.lib'