On Wed, Feb 25, 2015 at 9:46 AM, Chuck Arney <[email protected]>
wrote:

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

Chuck's solution is exactly what i use and it works correctly.  You can
also add regular PDS files here.  Also, remember that USS paths need to be
entered in upper and lower case to exactly match the path.


> 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:[email protected]] On
> Behalf Of Donald Likens
> Sent: Wednesday, February 25, 2015 9:23 AM
> To: [email protected]
> 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 [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