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

How to make dll and lib using bakefile.

2013年01月24日 ⁄ 综合 ⁄ 共 387字 ⁄ 字号 评论关闭

第一次使用wxWidgets编写动态库(DLL和LIB)时,编写的命令:

第1步:hello.bkl文件

<?xml version="1.0"?>
<makefile>
  <include file="presets/simple.bkl"/>
 
  <lib id="hellolib">
  <libname>hello</libname>
  <sources>hello.c </sources>
  </lib>
 
  <dll id="hellodll">
   <dllname>hello</dllname>
   <libname>hello</libname>
   <sources>hello.c </sources>
  </dll>

 </makefile>

第2步:bakefile -f msvc -o makefile hello.bkl生成  makefile文件。

第3步:nmake生成dll和lib文件。

抱歉!评论已关闭.