home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.interviews
- Path: sparky!uunet!spsgate!mogate!newsgate!franklin
- From: Malcolm_Franklin@chdasic.sps.mot.com (Malcolm Franklin)
- Subject: Problem building idemo on Sun
- Message-ID: <1992Dec29.032044.22478@newsgate.sps.mot.com>
- Sender: franklin@caster (Malcolm Franklin)
- Nntp-Posting-Host: 223.197.55.19
- Reply-To: Malcolm_Franklin@chdasic.sps.mot.com
- Organization: Motorola ASIC CAD
- Date: Tue, 29 Dec 1992 03:20:44 GMT
- Lines: 52
-
- Configuration:
- ----------------------------------------------
- SunOS 4.1.2 running on a Sparc 2 box
- InterViews 3.1 Distribution
- X11R5
- Sunc C++ compiler version 2.0FCS/4.0 (09/29/89)
-
-
- Here's what happens when I try to build idemo:
-
- CC +p -g -Dcplusplus_2_0 -I../../../.././src/include -I/all/edu/X11R5/include -pipe -c ../main.c
- CC +p +g ../main.c:
- cc -c -I/all/edu/CC/sun4/incl -I../../../.././src/include -I/all/edu/X11R5/include -g -pipe main.c
- "../main.c", line 138: warning: illegal combination of pointer and integer, op =
- "../main.c", line 138: warning: shortening ×_menu may lose significance
- "../main.c", line 138: illegal initialization
- "../main.c", line 138: warning: illegal combination of pointer and integer, op =
- "../main.c", line 138: warning: illegal combination of pointer and integer, op =
- "../main.c", line 138: warning: shortening &helv_menu may lose significance
- "../main.c", line 138: warning: illegal combination of pointer and integer, op =
- make: *** [main.o] Error 1
-
-
- Line 138 of iv/src/bin/idemo/main.c is the beginning of an initialization that
- looks just like several others before it:
-
-
- CommandInfo helv_menu[] = {
- { "Normal", &App::do_nothing },
- { "Bold", &App::do_nothing },
- { "Oblique", &App::do_nothing },
- { nil }
- };
-
-
- CommandInfo fontmenu[] = { <-------- This is line 138 ---<<<<
- { "Times", nil, times_menu, 2 },
- { "Helvetica", nil, helv_menu, 2 },
- { nil }
- }
-
- Can anyone figure this one out?
-
- Thanks,
- --Malcolm
-
- --
- --------------------------------------------------------------------------------
- Malcolm L. Franklin email: Malcolm_Franklin@chdasic.sps.mot.com
- Motorola ASIC CAD Phone: (602) 821-4371
- CAE Systems Fax: (602) 821-4963
- --------------------------------------------------------------------------------
-