|
From: Franco B. <fra...@we...> - 2001-02-21 15:19:15
|
<ni...@mc...> schrieb am 21.02.01: >Hello All! >I try create import library to Oracle OCI for Mingw32, but this library n= ot work. May be anybody already build import library for Oracle OCI=3F >My steps: > 1.=A0impdef oci.dll > oci.def > 2. Edit this file, append @nn.=A0=20 > For example, function >=A0 sword=A0=A0 OCIHandleFree(dvoid *hndlp, CONST ub4 type); > C:\Temp\ccm2aaaa.o(.text+0xfb3):cdemo81.c: > undefined reference to `OCIHandleFree' Obviously either You must not append any @nn in the def file, or You'll al= lways have to declare the function as =5F=5Fstdcall in the header file. So You'll have to find out if the functions in oci.dll are =5F=5Fstdcall or =5F=5F= cdecl. The value for @nn is calculated as follows: > sword OCIHandleFree(dvoid *hndlp, CONST ub4 type); sizeof(dvoid *) + sizeof(ub4) Ciao, Franco =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F 1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de Ih...@we..., 8MB Speicher, Verschluesselung - http://freemail.web.de |