Precompilers and OCI (MOSC)

MOSC Banner

LNK2019 for OCIDescAlloc

edited May 25, 2015 10:05AM in Precompilers and OCI (MOSC) 1 commentAnswered

Hi dear all,

I'm linking an OCI program which use the OCIDescAlloc, firstly the compiler complain

error C4013: 'OCIDescAlloc' undefined; assuming extern returning int

then I add a prototype manually as follow

sword OCIDescAlloc ( const void   *parenth,
                   void         **descpp,
                   ub4           type,
                   size_t        xtramem_sz,
                   void         **usrmempp);

this time I got LNK2019 error

error LNK2019: unresolved external symbol _OCIDescAlloc referenced in function _insert_blob

I do add the oci.lib in the lib path . so what's wrong with this ? many thanks !!!

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center