"tcperror.h" went away a long time ago.
And - the tcperror() function it defined is now simply
a wrapper for a normal perror() function.
Looking at the OS/390 2.10 C/C++ Runtime reference:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/edclb031/4.1.292?SHELF=EZ239127.bks&DT=20001006171233
It shows that the way to invoke tcperror() is to define
_OPEN_SYS_SOCK_EXT and include a few different header files,
as in:
#define _OPEN_SYS_SOCK_EXT
#include <sys/socket.h>
#include <stdio.h>
#include <errno.h>
That should get you the tcperror() function properly defined for the
IBM runtime.
The Systems/C runtime also has the tcperror() function (to be
compatible), ours is simply a straight-forward wrapper for perror().
- Dave Rivers -
Bob Henry wrote:
I'm sure this isn't the right forum for this question so my apologies in
advance. I have an old pre OS/390 C/C++ program which I'm trying to
recompile. It has a "#include tcperror.h" statement in it. That gives a
warning of "tcperror.h not found". Can someone tell me where the
tcperror.h code is stored or what the name of the C/C++ forum is so I can
ask the question there?
TIA
--
[EMAIL PROTECTED] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html