🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.interviews
1 messages
1 total messages Started by Yalamanchi Prasad Sun, 20 Dec 1992 18:39
ActionCallback ... problem
#1383
Author: Yalamanchi Prasad
Date: Sun, 20 Dec 1992 18:39
53 lines
2297 bytes
I am unable to compile .../iv3.1/iv/src/examples/menu/main.c program. Following are 

the compiler warning/error messages.
---- BEGIN
/sysprod2/lang/CC/sun4/CC     -Dcplusplus_2_0     -I/interviews/include    -c ../main.c
CC  ../main.c:
cc   -c -I/sysprod2/lang/CC/sun4/incl -I/interviews/include  main.c
"../main.c", line 63: warning: illegal combination of pointer and integer, op =
"../main.c", line 63: warning: shortening &filemenu may lose significance
"../main.c", line 63: illegal initialization
"../main.c", line 63: warning: illegal combination of pointer and integer, op =
"../main.c", line 63: warning: shortening &editmenu may lose significance
"../main.c", line 63: warning: illegal combination of pointer and integer, op =
"../main.c", line 63: warning: illegal combination of pointer and integer, op =
"../main.c", line 63: warning: shortening &colormenu may lose significance
"../main.c", line 63: warning: illegal combination of pointer and integer, op =
*** Error code 1
make: Fatal error: Command failed for target `main.o'
Current working directory /export/data3/prasad/iv3.1/iv/src/examples/menu/SUN4
---- END

Without the Preprocessor macros it seems to compile. Like the code below

//declareActionCallback(App)
//implementActionCallback(App)

struct CmdInfo {
    const char*               str;
  //  ActionMemberFunction(App) func;
    void                      (*func) ();
    CmdInfo*                  submenu;
    int                       options;
} ;

replacing all the pointer-to-memberfuncs in the structures with a dummy func like

void dummy() {;}

CmdInfo filemenu[] = {
    { "Open", dummy },
    { "Save", dummy },
    { "", nil },
    { "Quit", dummy },
    { nil }
};

I would appreciate anyone's help/suggestions.

Note:  I am using SUN 2.1 CC ( No Templates !!)

Thanks

prasady@hou.amoco.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads