Please accept my apologies the program consisted of hundreds of lines which
I complied cleanly using Visual studio. 

 

Obviously, there are difference not in ANSI C++ which I Think XL is at 20
but in the window types.

 

To make the program compatible with types like DWORD I added typedef due to
my oversight I forgot to end one with a semi colon which was right before
the includes which caused one long error. 

 

Hope I didn't waste any one time.

 

Thanks  you.  

 

From: [email protected] <[email protected]> 
Sent: Wednesday, January 25, 2023 2:28 PM
To: 'IBM Mainframe Discussion List' <[email protected]>
Subject: XL C\C+ strange compile errors 

 

Hi

 

I have a very short C++ program compiling as /CXX   which all it does is
basically open a file

 

I am getting a whole slew of errors but they are not from my program they
are standard includes CEE.SCEEH.H(STDDEF) and in fact I didn't explicitly
include them (maybe they got included by 2 includes that I included in my
program of <string> and <map>

 

Thing is I don't know why I am getting these errors they would seem to be
okay for C++ such as "extern"  and size_t

 

Here is a screen shot of some of the errors

 

"//'CEE.SCEEH.H(STDDEF)'", line 39.4: CCN5063 (S) The text "extern" is
unexpecte"

"//'CEE.SCEEH.H(STRING)'", line 119.51: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 120.54: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 121.60: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 122.45: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 125.14: CCN5040 (S) The text "__strlen" is
unexpa

ambiguous.
"

"//'CEE.SCEEH.H(STRING)'", line 130.58: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 131.58: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 132.64: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 144.51: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 146.57: CCN5063 (S) The text "size_t" is
unexpec"

"//'CEE.SCEEH.H(STRING)'", line 148.43: CCN5063 (S) The text "size_t" is
unexpec"    

 

 

Here is partial list of  my compile JCL

 

***************************** Top of Data *****************************

//JOER$ JOB 'ADCD V2R9','SYSPROG',NOTIFY=&SYSUID,REGION=0M             

//*                                                                    

//*------------------------------------------------------------------- 

//*  COMPILE STEP:                                                     

//*------------------------------------------------------------------- 

//COMPILE EXEC PGM=CCNDRVR,REGION=192M,PARM=('/CXX LIST,OBJ,DEBUG(FORMA

//             T(DWARF),HOOK(LINE,NOBLOCK,PATH),SYMBOL,FILE(OPENFIL))')

//STEPLIB  DD  DSN=CEE.SCEERUN2,DISP=SHR                               

//         DD  DSN=CBC.SCCNCMP,DISP=SHR                                

//         DD  DSN=CEE.SCEERUN,DISP=SHR                                 

 

   Not sure why I am these are errors

 

        If anyone can point me in the right direction would appreciate it

 

Thanks  


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

Reply via email to