🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #567

Errors in examples/menu compile

#567
From: williams
Date: Tue, 01 Sep 1992 18:55
30 lines
1616 bytes
When trying to compile the examples/menu application in IV 3.1 beta using
CenterLine's ObjectCenter Release 1.1 I get the following error messages
for the file main.c:

making all for sparc in ./menu/sparc
/usr/local/CenterLine/bin/CC     -Dcplusplus_2_1     -I/interviews3.1/include -I/usr/local/X11R5/include   -c ../main.c
CC  ../main.c:
"../main.c", line 40: error: unexpected initializer list
"../main.c", line 40: error:  initializer list too long
"../main.c", line 48: error: unexpected initializer list
"../main.c", line 48: error:  initializer list too long
"../main.c", line 55: error: unexpected initializer list
"../main.c", line 55: error:  initializer list too long
"../main.c", line 126: error: bad argument  2 type for App_ActionCallback::App_ActionCallback(): App_ActionMemberFunction * ( App_ActionMemberFunction  expected)
7 errors

*** Error code 1

The initializer lists are for the filemenu and editmenu arrays of CmdInfo structs.

Has anyone else run into this problem??

Also the  statement on line 126

new ActionCallback(App)(this, i->func)

seems to need a dereference function pointer. Is this an error or am I 
picking up the wrong declarations somewhere?

Ron Williamson
Technical Details
Message-ID: <9209011855.AA19026@aic.hrl.hac.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!aic.hrl.hac.com!williams

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!aic.hrl.hac.com!williams
From: williams@aic.hrl.hac.com
Subject: Errors in examples/menu compile
Message-ID: <9209011855.AA19026@aic.hrl.hac.com>
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
Date: Tue, 1 Sep 1992 18:55:12 GMT
Lines: 31