Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does any have come across LNK2029: "_SQLADRVC@12" error in IBMCOB ?

Status
Not open for further replies.

khphani

Programmer
May 7, 2001
4
IN
Hi all,

We are implementing a CICS project using IBM COBOL(visualge) on NT. Our application uses embedded Oracle sql calls.

We have precompiled the cics application using oracle's procob18 precompiler.
And we have used cicstcl -lIBMCOB for transalation and linking. But while linking the linker is complaining the following errors.

error LNK2029: "_SQLADRVC@12" :unresolved external
error LNK2029: "_SQLADR@8" : unresolved external
error LNK2029: "_SQLBEX@12" : unresolved external
error LNK2029: "_ORASQL8@0" : unresolved external

We have checked the system path and lib and have included related libs but the problem still persits.

does any one have come across such problem?
Any inputs are highly appreciated.

thanks in advance.

regards,
Phani
 
Which Oracle LIB files are you linking with?

I'll check those (once you tell me what they are) for the appropriate entry points. Could be you need a calling convention to eliminate the leading underscore and to keep the case of the call the same.
 
Thank you Mr.Thane for your kind response.

Can u let me know more about calling convention in my case pls?

I have included orasql8.lib as well as ibm cobol's runtime libs(\ibmcob\lib)in my system lib path.
My path includes ibmcob\bin directory as well.

I have followed the following steps...

Step1 : Oracle's pro*cob pre-compilation
-----------------------------------------
procob18 INA=myprog.CSC host=cobol ONA=myprog.CCP SQLCHECK=FULL MAXOPENCURSORS=20 userid=user04/passwd@db


step 2: Cics translation
-----------------------------------------
cicstran -lIBMCOB myprog.ccp


Step 3: IBM Cobol compilation
-----------------------------------------
cob2 -c -qlib -qthread -Ic:\OPT\CICS\include -IC:\oracle\ora81\precomp\lib\orasql8.lib -IC:\oracle\ora81\precomp\lib\msvc\orasql8.lib myprog.cbl


Step 4 : IBM Cobol Linking
-----------------------------------------
a. ilib /nol /gendef /gi:myprog myprog.obj %COBOLMAIN%\lib\iwzrwin4.obj C:\oracle\ora81\precomp\lib\msvc\orasql8.lib

b .ilib /nol /def:myprog.def /genimplib

c. ilink /free /nol /dll /o:myprog.ibmcob myprog.ibmcob.exp myprog.obj iwzrwin1.obj iwzrwin2.obj iwzrwin3.obj iwzrwin4.obj c:\OPT\CICS\lib\cicsprIBMCOB.lib C:\oracle\ora81\precomp\lib\msvc\oraSQL8.LIB C:\oracle\ora81\precomp\lib\orasql8.LIB


I could able to proceed upto Step4:b without any problem. But the final step ilink fails because of the linker problems.

myprog.obj(D:\myprog.cbl) : error LNK2029: "_SQLADRVC@12" :
unresolved external..
...
...

thanking you.

regards,
Phani






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top