you cant do it that way. lsearch prepends to the include...
https://www.ibm.com/docs/en/zos/2.1.0?topic=options-lsearch-nolsearch Joe On Sat, Aug 13, 2022 at 4:49 PM Binyamin Dissen <[email protected]> wrote: > I am trying to tell the C compiler to use MACRO file types for #include. > > The doc states: > > =========================================================================== > COMMANDS CC All Help Information > LSEarch(opt)|NOLSEarch NOLSEARCH is the default. The LSEARCH option > directs the preprocessor to > look for the user include files in the specified libraries or > MACLIBs, > on the specified minidisks, or in the specified BFS directories. The > format of the LSEARCH option is: LSEARCH (opt,opt,...) > where: opt may be one of the following: - A CMS > filemode > - A BFS path name - (fname.suffix) = (subopt,subopt,...) > where: > - fname is the name of the include file or * - suffix is the > suffix of the include file or * - subopt can be a filemode, > LIB(maclib_name,maclib_name,...), or NOLIB. > > =============================================================================== > > I have tried multiple versions of LSEARCH with no luck. > > cc **name** c * (lsearch(*.macro) > WARNING CCN3261 Suboption *.macro is not valid for option LSEARCH. > > cc **name** c * (lsearch(*.*.*) > WARNING CCN3261 Suboption *.*.* is not valid for option LSEARCH. > > I can simply rename the MACRO to H and it works, but this is a bug in my > bonnet. > > -- > Binyamin Dissen <[email protected]> > http://www.dissensoftware.com > > Director, Dissen Software, Bar & Grill - Israel > > ---------------------------------------------------------------------- > 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
