Go back to the other proc and look at your STEPLIB libraries in the execution 
step.  XPLINK requires a different set of libraries.  There are three sets for 
xlc:

1.  XPLINK
2.  non-XPLINK, LE
3.  non-XPLINK, non-LE, for the METAL option.

Lloyd



----- Original Message ----
From: "Sevetson, Phil" <[email protected]>
To: [email protected]
Sent: Wed, February 1, 2012 3:14:09 PM
Subject: Re: XL CPP z/OS first use problem

All,
Solved it with reference to the manual -- I was apparently using the wrong 
compile proc. CBCXCBG worked, and gave me my output in the SYSPRINT sysout.  
So, 
apparently Hello-World needs XPLINK(ON), so I have to use a proc which supports 
it.  I hope to understand this in a future life.

Thanks, for any think time anyone put in on this.

--Phil Sevetson

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Sevetson, Phil
Sent: Wednesday, February 01, 2012 2:29 PM
To: [email protected]
Subject: XL CPP z/OS first use problem

Hello, all, first time post from new member.  Please bear with me if I lack 
polish!

I'm trying to prove the function of our CPP processor on our mainframe 
(Frankly, 
it's mostly for the exercise) and am running into problems with Hello-World.  
The code I'm running is:

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
    cout << "Hello, World!";
    return 0;
}

I've also run it without stdio.h; it has never run successfully. It compiles, 
then fails in execution with ABEND User=U4038.  The relevant message appears to 
be this:

"CEE3555S A call was made from a NOXPLINK-compiled application to an 
XPLINK-compiled exported function in DLL C128 and the XPLINK(ON) runtime option 
was not specified.
>From entry point __dllstaticinit at compile unit offset +00000116 at entry 
offset +00000116 at address 14D02176.
<> LEAID ENTERED (LEVEL 08/30/2010 AT 12.37)
<> LEAID PROCESSING COMPLETE. RC=0
******************************* Bottom of Data
"
Now, I'm compiling with the standard proc CBCCB, which specifies inline that 
XPLING(ON) is not supported.  Using compiler options:
LOCALE(En_US.IBM-1140)
MAR(1,80) NOSEQ LO

Can someone direct me to a reference source that's likely to help, and/or point 
out whatever really N00b mistake I'm making?

--Phil Sevetson

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to