Two answers:
1. From "Serguei Patchkovskii" <patchkov_at_acs.ucalgary.ca>
Suggesting that I define _XOPEN_SOURCE_EXTENDED. Unfortunately I had
already done that and was looking for a more general solution.
2. From Ken Block USG <block_at_quarry.zk3.dec.com>
"The system headers should work exactly the same for C++ as they do
for C (although even that is somewhat idiosyncratic.) Could you send
us an example where this is not working with the C++ compiler and we
will see if we can fix it?"
So I forwarded two one-line programs that demonstrated the problem and am
hoping for a fix, sometime...
Charlie
Original question:
> We have a problem with C++ code where a "cxx -x cxx prog.C" fails
> with errors about things like mknod and gethostid being undefined.
> The right include files are there and a c89 or cc of the same
> file (with a ".c") succeeds. The problem might be with the standards
> defines (_X_OPEN_SOURCE_EXTENDED etc). I have tried to RTFM but the
> correct manual has not yet come to me )-: I have manually done the
> define in the compile line and that does work, but I am looking for
> a general methodology or at least some documentation.
---
*****************************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr_at_iisc.com cmr_at_koibito.iisc.com cmr_at_shore.net *
* Specializing in UNIX, X, Image Processing, and Communications. *
* One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
* (617) 367 3151 FAX (617) 723 6861 *
*****************************************************************************
Received on Tue Jul 28 1998 - 16:12:24 NZST