I've had trouble when I forgot to link with RL=LIBCINIT.LIB.SYS when using the HP/iX C compiler. For the CCSC compiler, there's a
macro you need in your C code that makes usre some runtime stuff gets initialized.
"Paul H Christidis" <[log in to unmask]> wrote in message news:8v270j0koh@enews4.newsguy.com...
> A fellow programmer is trying to call, from COBOL, a routine written in C.
> He included some displays/printf's and ran the program redirecting its
> $stdlist to a disk file.
>
> After the run the file 'only' contained the 'COBOL' displays, while when
> executed in session the debugging displays from the C routine show on the
> screen.
>
> I'm guessing that it may have something to do with the file numbers that C
> vs COBOL use for directing their displays.
> Is there a way of making sure that the displays from the C routine are also
> included in the same file as the ones from the COBOL program.
>
> Regards
> Paul Christidis
>