From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7bfa09f05667b86c X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-20 08:27:38 PST Path: bga.com!news.sprintlink.net!mv!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!jobone!fiesta.srl.ford.com!eccdb1.pms.ford.com!charette From: charette@ultoe.det.dec.com (Mark Charette) Newsgroups: comp.unix.osf.osf1 Subject: Re: C++ compile problem on osf/1 Date: 20 Oct 1994 13:07:24 GMT Organization: ECC at Ford Motor Company, Dearborn Michigan Message-ID: <385q2c$lc5@eccdb1.pms.ford.com> References: NNTP-Posting-Host: aec590.ve.ford.com X-Newsreader: TIN [version 1.2 PL0] David McDougall (davidm@bri.hp.com) wrote: : and I am getting a ridiculous error which states : the following: : "dec_interface.C:44: error: In this statement, "ioctl" is not declared." : Now line 44 is identical in syntax to the c version and I : have included the #include line in my c++ header : file. Does anyone know whats wrong or had a similar problem. If you look in the ioctl.h file under OSF/1 1.3 you'll notice that there is no prototype for ioctl in there. Fixed in (at least) OSF/1 3.0. The error message is explicit. In C (if you didn't use -std1 -w0) ioctl would default to an int function (which it is). If you used the -std1 -w0 option on the C compiler it would complain abount no prototype in scope. Mark Charette charette@mika.com