Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!killer!frankie From: frankie@killer.DALLAS.TX.US (Frank Filippis) Newsgroups: comp.lang.c++ Subject: C++ Sunview Errors; Summary: C++ Sunview errors Message-ID: <7276@killer.DALLAS.TX.US> Date: 22 Feb 89 15:40:37 GMT Distribution: comp Organization: The Unix(R) Connection, Dallas, Texas Lines: 58 I am encountering the following errors while trying to compile a sunview program on a Sun 4. Can anyone tell me if this is a compiler error? "/usr/include/sunwindow/attr.h", line 183: error: non-int field "/usr/include/sunwindow/attr.h", line 185: error: non-int field "/usr/include/sunwindow/attr.h", line 186: error: non-int field "/usr/include/sunwindow/attr.h", line 188: error: non-int field typedef union { struct { Attr_pkg pkg : 8; /* Line 183 */ unsigned ordinal : 8; Attr_list_type list_type : 2; /* Line 184 */ Attr_list_ptr_type list_ptr_type : 1; /* Line 185 */ unsigned spare1 : 1; Attr_base_type base_type : 7; /* Line 188 */ unsigned spare2 : 1; unsigned cardinality : 4; } info; Attr_attribute code; } Attr_union; also the following line err_frame=(Frame) window_create(NULL,FRAME, WIN_X,0, WIN_Y,0, WIN_WIDTH,1152, WIN_HEIGHT,35, FRAME_SHOW_LABEL,FALSE, WIN_SHOW, FALSE, 0); results in the following error "error.cc", line 34: error: unexpected 1 argument for window_create() window create is declared in the header file window.h as extern Window window_create(); with no parameters specified. is there anyway to get around this in c++ without redefining the function as extern Window window_create(...); Thanks Frank A. Filippis Shearson Lehman Hutton uunet!slcpi!mbs-dev9!frank