Home » RDBMS Server » Server Utilities » STDCALL application with C DECL Oracle Client Library
STDCALL application with C DECL Oracle Client Library [message #72547] Tue, 15 July 2003 03:07
sridhar
Messages: 119
Registered: December 2001
Senior Member
We have an application containing functions in STDCALL convention.
We also have ESQL statements in this application. Further when
we link this appliaction with the Oracle client library we get symbol
resolution problem for Oracle symbols. We compile the applications
(the preprocessed .c file) with -Gz option(STDCALL convention).
This results in a conflict since Oracle client library
($ORACLE_HOMEprecomplibmsvc) provides only C declaration calls.

Error that we see while building the application:
-----------------------------------------------------------------------------------------

Creating library libadmorasa.lib and object libadmorasa.exp
admdb_funcsora.obj : error LNK2019: unresolved external symbol _sqlcxt@16 refere
nced in function _AdmDB_DeleteFile@4
admdb_utilora.obj : error LNK2019: unresolved external symbol _sqlcxt@16 referen
ced in function _AdmDB_GrantAccess@20
libadmorasa.dll : fatal error LNK1120: 1 unresolved externals

Note: AdmDB*, libadmorasa* are application specific
-------------------------------------------------------------------------------------------

$ORACLE_HOMEprecomplibmsvc>nm oraSQL8.LIB | grep -i sqlcxt
0:0000000 B __imp__sqlcxt
0:0000000 T _sqlcxt

Is there any way we can resolve this problem without having to change
the application to be compiled with C calling conventions?
Previous Topic: Error help!1
Next Topic: Import Tables from SYSTEM Tablespace (urgent)
Goto Forum:
  


Current Time: Sun Jun 30 16:44:40 CDT 2024