There is still supposed to be a definition in C that does NOT have extern specified. It is quite common to just use extern declarations and most compilers account for this.
Quoting IBM: An extern declaration makes the described variable usable by the succeeding part of the current source file. This declaration does not replace the definition. The declaration is used to describe the variable that is externally defined. IOW, the definition is the one true instance. It should be the only one with an initializer or things get confusing. ...chris. -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Tuesday, August 18, 2015 4:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Resolving EXTRN References Different from C, where you use extern on both ends. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Cali zMan Sent: Tuesday, August 18, 2015 3:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Resolving EXTRN References Yep, adding the ENTRY statement fixed it. Not sure how I missed its necessity. Thanks to Paul and Charles for chiming in. ---------------------------------------------------------------------- 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