- 求职 : 数据库管理员
- 论坛徽章:
- 0
|
google,然後下載 pexports
http://www.emmestech.com/softwar ... nload_pexports.html
- 4. 用pexport和dlltool生成gcc可用的 oraxml庫
- a. 建立mklib.bat
-
- echo off
- rem Create : Gan Jian Hui
- rem Date : 2007/02/02
- if "%1" == "" goto usage
- set DLL=%1%.dll
- set DEF=%1%.def
- set LIB=lib%1%.a
-
- if not EXIST %DLL% goto usage
- pexports %DLL% > %DEF%
- dlltool -D %DLL% -d %DEF% -l %LIB%
- echo Archive : %LIB%
- goto end
- :usage
- echo %DLL% not exists
- :end
- echo on
-
- b.生成dll接口庫,liboraxml8.a
- cd %ORACLE_HOME%\bin
- mklib oraxml8
- nm liboraxml8.a :檢查.
-
- c. 將liboraxml8.a放入gcc的lib目錄下
- copy liboraxml8.a i:\dev-cpp\lib
复制代码
[ 本帖最后由 gangjh 于 2008-8-27 08:26 编辑 ] |
|