[Info-vax] how to include ioc_routines.h?

Craig A. Berry craigberry at nospam.mac.com
Thu Jan 21 11:15:27 EST 2016


On 1/21/16 9:38 AM, Joukj wrote:
> Hi all,
>
> A simple c-program:
>
> $type test.c
> #include <ioc_routines.h>
> main ()
> {}
> $cc test.c
>
> #include <ioc_routines.h>
> .^
> %CC-F-NOINCLFILEF, Cannot find file <ioc_routines.h> specified in
> #include directive. at line number 1 in file $DISK7:[joukj.TEST]test.c;1
>
>
> What is going wrong. I figured out that ioc_routines.h is included in
> sys$library:sys$lib_c.tbl. I thought this file was searched by DECC.
> What am I doing wrong?

 From entry 10.22.2 of the venerable FAQ from
<http://hoffmanlabs.org/vmsfaq/vmsfaq_016.html#commonc2>:

To reference the version-dependent symbol library
sys$share:sys$lib_c.tlb, use a command similar to the following for
compilation:


$ CC sourcea+SYS$LIBRARY:SYS$LIB_C/LIB




More information about the Info-vax mailing list