I was going through this same process a while back.  At that time I decided 
that batch compiles with the XL C/C++ compiler just don't work as documented.  
The best you can do is find something that works and not try and rationalize it 
with what the doc says.

One thing I remember from that exercise is that the compiler reacts differently 
in the use of the SEARCH and LSEARCH options if you first reset them before 
setting them to the value you want.  I ended up with this in my OPT file to get 
it to work:

   NOSEARCH                          
   SEARCH(/USR/LPP/CBCLIB/INCLUDE/)  
   NOLSEARCH                         
   LSEARCH(/USR/LPP/CBCLIB/INCLUDE/)

I'm not sure this was the total solution to my problems but I remember it made 
things better.

Chuck Arney
Arney Computer Systems
Web: http://zosdebug.com
Facebook: http://www.facebook.com/arneycomputer

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Donald Likens
Sent: Wednesday, February 25, 2015 9:23 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: C++ Batch compile with includes in a USS directory

I want to do a batch compile using procedure CBCCL with the #includes that are 
required to compile the source in /VERSYSB/usr/lpp/IHSA/V8R5/include.

I tried pointing the SYSLIB DD to this directory. I also tried the SEARCH 
option.

I have been successful with using the UNIX xlc command but this has other 
complications.

Any help is appreciated.

----------------------------------------------------------------------
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