现在的位置: 首页 > 综合 > 正文

dll生成lib

2012年09月04日 ⁄ 综合 ⁄ 共 311字 ⁄ 字号 评论关闭

  1、在 Visuall Studio Command Prompt 执行:  
  dumpbin   /exports   CoreFoundation.dll   >   CoreFoundation.def  
    
  2、编辑   yourdll.def   文件,使之格式与.def文件格式一致。比如:  
  LIBRARY CoreFoundation  
  EXPORTS
                fn1;  
                fn2;  
  3、在命令行执行:  
  lib   /def:CoreFoundationl.def   /machine:i386   /out:CoreFoundationl.lib

抱歉!评论已关闭.