Article View: comp.windows.interviews
Article #162Problems with 3.1-beta examples..
From: Konrad Eriksson-Tollmar
Date: Tue, 04 Aug 1992 18:37
Date: Tue, 04 Aug 1992 18:37
26 lines
1283 bytes
1283 bytes
Hi,
I have a problem with one of the examples that comes with
3.1-beta. It's the menu example. When I try to compile
it I got an error in the defintion of CmdInfo bar[].
cc -c -I/usr/CC/incl -I/home/iplab/konrad/InterViews/iv/installed/include -I/usr/local/include -pipe -pipe main.c
"../main.c", line 64: warning: illegal combination of pointer and integer, op =
"../main.c", line 64: warning: shortening &filemenu may lose significance
"../main.c", line 64: illegal initialization
Which is (in ../iv/src/examples/menu/main.c):
63 CmdInfo bar[] = {
64 { "File", nil, filemenu, 0 },
65 { "Edit", nil, editmenu, 1 },
66 { "Color", nil, colormenu, 2 },
67 { nil }
68 };
Thanks in advance!
Konrad Tollmar (konrad@nada.kth.se)
The Royal Institute of Technology, Stockholm, Sweden
Technical Details
Message-ID:
<1992Aug4.183703.8363@kth.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!kth.se!cyklop.nada.kth.se!konradShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!kth.se!cyklop.nada.kth.se!konrad From: konrad@cyklop.nada.kth.se (Konrad Eriksson-Tollmar) Subject: Problems with 3.1-beta examples.. Message-ID: <1992Aug4.183703.8363@kth.se> Keywords: 3.1-beta, menu Sender: konrad@nada.kth.se Nntp-Posting-Host: cyklop.nada.kth.se Organization: Royal Institute of Technology, Stockholm, Sweden Date: Tue, 4 Aug 1992 18:37:03 GMT Lines: 26