Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!pp!riunite!rfg From: rfg@riunite.ACA.MCC.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: Re: ioctl macros and g++ Message-ID: <214@riunite.ACA.MCC.COM> Date: 17 May 89 19:23:04 GMT References: Reply-To: rfg@riunite.UUCP (Ron Guilmette) Distribution: comp.lang.c++ Organization: MCC Austin, Texas Lines: 23 In article mleisher@nmsu.edu (Mark Leisher) writes: > >When using ioctl macros under g++, don't forget the '-traditional' >switch. This amusing little difference kept me occupied for quite a >while. I have been bitten here too. Actually, what you need to do is to install *BOTH* GCC and G++ and then make sure that the particular (GNU) preprocessor that G++ is invoking by default knows where to find the "gcc-include" directory (which should have gotten installed alone with GCC) as well as the "g++-include" directory. One more thing. When installing GCC, make sure to do the "fixincludes" step. This fixes up the (non-ANSI) ioctl.h include file so that it can work right with a real ANSI-fied compiler (like GCC). -- // Ron Guilmette - MCC - Experimental Systems Kit Project // 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740 // ARPA: rfg@mcc.com // UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg