On Sun, 14 Aug 2022 00:49:20 +0300, Binyamin Dissen
<[email protected]> wrote:
>I am trying to tell the C compiler to use MACRO file types for #include.
> :
>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.
You specified
#include <my.macro>
instead of
#include "my.macro"
<> are for system include files. These are always H files or members of a
MACLIB.
Quotes are for *user* include files. They can be any name. If not found, the
LSEARCH option/default is used, ignoring the ft and fm.
And your syntax for LSEARCH is wrong. It would be
LSEARCH((*.macro)=(LIB(.....), .....))
That is, you are mapping a specific pattern to a specific set of MACLIBs.
My test program that has
#include "my.macro"
compiles just fine without any LSEARCH specification.
Alan Altmark
z/VM Consultant
IBM
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN