Dll source code

I think you're getting this because you are adding the sidedeck to your bind. 
This step is not necessary because the DLL that you are building provides 
openadata, not referencing it. You would add the sidedeck when binding other 
programs which want to call openadata.

I am getting this error on the assembler link step where I am trying to 
reference the dll export

thanks

Assembler link step 

//LINK     EXEC PGM=HEWL,PARM='MAP,LET,LIST'                            
 //SYSLIN   DD  DSN=&&OBJ,DISP=(OLD,DELETE)                              
 //         DD  DSN=IBMUSER.DBGR.SIDEDECK(SYSADATA),DISP=SHR             
 //         DD  DDNAME=SYSIN                                             
 //SYSLIB   DD  DSN=ISP.SISPLOAD,DISP=SHR                                
 //*        DD  DSN=IBMUSER.HERCULES.LOADLIB,DISP=SHR                    
 //         DD  DSN=SYS1.CSSLIB,DISP=SHR                                 
 //         DD  DSN=IBMUSER.TEST.AUTHLIB,DISP=SHR                        
 //         DD  DSN=IBMUSER.DBGR.DLLLIB,DISP=SHR                         
 //SYSLMOD  DD  DSN=IBMUSER.TEST.AUTHLIB,DISP=SHR                        
 //SYSUT1   DD  DSN=&&SYSUT1,SPACE=(1024,(120,120),,,ROUND),UNIT=VIO,    
 //             DCB=BUFNO=1                                              
 //SYSPRINT DD  SYSOUT=*                                                 
 //SYSIN    DD  *                                                        
  INCLUDE SYSLIB(SYSADATA)                                               
  ENTRY TESTPRGD                                                         
  NAME TESTPRGD(R)                                                       
 /*                                                                      
 //                                                                      

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Tabari Alexander
Sent: Tuesday, July 9, 2019 12:00 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Unresolved external references when trying to link DLL app

> IEW2322I 1220  1    IMPORT CODE64,'SYSADATA','openadata__FPc'

Based on this statement, can I make the assumption that you are building 64-bit 
code?

> IEW2469E 9907 THE ATTRIBUTES OF A REFERENCE TO CEETEST FROM SECTION 
> SYSADATA DO

Is CEETEST 31-bit or 64-bit? They need to be the same AMODE.

> IEW2456E 9207 SYMBOL CEETGTFN UNRESOLVED.  MEMBER COULD NOT BE 
> INCLUDED FROM THE IEW2456E 9207 SYMBOL CEEINT UNRESOLVED.  MEMBER 
> COULD NOT BE INCLUDED FROM THE D IEW2456E 9207 SYMBOL CEESTART 
> UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE IEW2456E 9207 
> SYMBOL CEEBETBL UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE 
> IEW2456E 9207 SYMBOL CEETREC UNRESOLVED.  MEMBER COULD NOT BE INCLUDED 
> FROM THE IEW2456E 9207 SYMBOL fopen UNRESOLVED.  MEMBER COULD NOT BE 
> INCLUDED FROM THE DE

You do not have the LE libraries in your SYSLIB concatenation. Please refer to 
this page 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.cbcux01/finauto.htm
to determine which libraries to include. It is dependent on whether or not your 
code is 31-bit NOXPLINK, 31-bit XPLINK, or 64-bit.

> IEW2456E 9207 SYMBOL openadata UNRESOLVED.  MEMBER COULD NOT BE 
> INCLUDED FROM TH
Dll source code

I think you're getting this because you are adding the sidedeck to your bind. 
This step is not necessary because the DLL that you are building provides 
openadata, not referencing it. You would add the sidedeck when binding other 
programs which want to call openadata.

> #pragma map(opnadata,"openadata")

Typo. You've got opnadata instead of openadata. Keep in mind that you are also 
mapping it to a name that is longer than 8 characters. You're going to have to 
enable longname support on the bind to take advantage of that. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to