Path: utzoo!attcan!uunet!tank!ncar!unmvax!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!att!cbnewsl!dog From: dog@cbnewsl.ATT.COM (edward.n.schiebel) Newsgroups: comp.lang.c++ Subject: Re: C++ Sunview Errors; Summary: On sunview header files... Message-ID: <160@cbnewsl.ATT.COM> Date: 24 Feb 89 14:45:13 GMT References: <7276@killer.DALLAS.TX.US> Distribution: comp Organization: AT&T Bell Laboratories Lines: 31 In article <7276@killer.DALLAS.TX.US>, frankie@killer.DALLAS.TX.US (Frank Filippis) writes: > > I am encountering ... errors while trying to compile a sunview > program ... > > "error.cc", line 34: error: unexpected 1 argument for window_create() > > is there anyway to get around this in c++ without redefining the function as > > extern Window window_create(...); > In a word yes and no. There is no way around declaring the function, but the proper declaration is extern Window window_create(Window, caddr_t(*)(), ...); If you are running cfront 2.0, then you also need to wrap this declaration between extern "C" { and } By declaring functions as func(...), you are defeating one of the purposes of function prototypes, verifying the application is using the proper argument types. I have a complete (and untested) set of sunview header files that have been C++'ified. If it is legal for me to post them, I will. Ed Schiebel ...att!vilya!dog