Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!gould!njw From: njw@doc.ic.ac.uk (Nick Williams) Newsgroups: comp.sys.hp Subject: Compiling problems with gcc Keywords: gcc, cc, X/Open, POSIX Message-ID: Date: 18 Oct 90 08:33:22 GMT Sender: news@doc.ic.ac.uk Distribution: comp Organization: Department of Computing, Imperial College, London Lines: 43 Okay, now that I finally have a working version of gcc et al under HPUX 7.0, I naturally want to compile programs. However, at some magical point in the hpux C compiler, there are a couple of #define's made, which I can't track down: _INCLUDE_POSIX_SOURCE _INCLUDE_XOPEN_SOURCE _INCLUDE_HPUX_SOURCE I can't find these in /lib/cpp, cc or any of the similar type places. But if the XOPEN define is not made, then such types as caddr_t are not defined by . Hence compiling an X program gets awkward. How does the 'normal' hpux compiler define these? And how does it decide which ones are neccessary? Which ones are neccessary? Compiling with all of them set seems to fix all the problems, but it's a hassle to constantly have to fiddle with the Makefile's. (At least, until (a) everyone uses Imake and (b) I fix up a working template :-). Nick ______________________________________________________________________________ Nick Williams. njw@doc.ic.ac.uk ... Dept of Computing, Imperial College, London SW7 2B7. UK njw@athena.mit.edu ... Project Athena, M.I.T., Cambridge, MA 02139. USA Any opinions or views you may find hiding in this message are mine, and not policy, intent, ideas, twinklings of eyes, or anything at all related with my current organisation, unless specifically noted as such. -- ______________________________________________________________________________ Nick Williams. njw@athena.mit.edu ... Project Athena, M.I.T., Cambridge, MA 02139. USA njw@doc.ic.ac.uk ... Dept of Computing, Imperial College, London SW7 2B7. UK Any opinions or views you may find hiding in this message are mine, and not policy, intent, ideas, twinklings of eyes, or anything at all related with my current organisation, unless specifically noted as such.