From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078715811977.tru64-unix-managers.marc@archive.invalid> From: "Charles M. Richmond" Date: Tue, 28 Jul 1998 16:11:23 +0000 To: tru64-unix-managers Subject: Summary: cxx problems (not resolved) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078715811977 Two answers: 1. From "Serguei Patchkovskii" 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 "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@iisc.com cmr@koibito.iisc.com cmr@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 * *****************************************************************************