From: charette@ultoe.det.dec.com (Mark Charette)
Subject: Re: C++ compile problem on osf/1
Date: 20 Oct 1994 13:07:24 GMT [thread overview]
Message-ID: <385q2c$lc5@eccdb1.pms.ford.com> (raw)
In-Reply-To: CxxD8t.9E0@bri.hp.com
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 <sys/ioctl.h> 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
next prev parent reply other threads:[~1994-10-20 13:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-19 14:50 C++ compile problem on osf/1 David McDougall
1994-10-20 13:07 ` Mark Charette [this message]
1994-10-20 14:40 ` Russ Russell
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox