home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / intervie / 3469 < prev    next >
Encoding:
Text File  |  1992-12-29  |  2.3 KB  |  65 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!spsgate!mogate!newsgate!franklin
  3. From: Malcolm_Franklin@chdasic.sps.mot.com (Malcolm Franklin)
  4. Subject: Problem building idemo on Sun
  5. Message-ID: <1992Dec29.032044.22478@newsgate.sps.mot.com>
  6. Sender: franklin@caster (Malcolm Franklin)
  7. Nntp-Posting-Host: 223.197.55.19
  8. Reply-To: Malcolm_Franklin@chdasic.sps.mot.com
  9. Organization: Motorola ASIC CAD
  10. Date: Tue, 29 Dec 1992 03:20:44 GMT
  11. Lines: 52
  12.  
  13. Configuration:
  14. ----------------------------------------------
  15. SunOS 4.1.2 running on a Sparc 2 box
  16. InterViews 3.1 Distribution
  17. X11R5
  18. Sunc C++ compiler version 2.0FCS/4.0 (09/29/89)
  19.  
  20.  
  21. Here's what happens when I try to build idemo:
  22.  
  23. CC +p   -g   -Dcplusplus_2_0     -I../../../.././src/include -I/all/edu/X11R5/include  -pipe -c ../main.c
  24. CC  +p +g ../main.c:
  25. cc   -c -I/all/edu/CC/sun4/incl -I../../../.././src/include -I/all/edu/X11R5/include  -g -pipe main.c
  26. "../main.c", line 138: warning: illegal combination of pointer and integer, op =
  27. "../main.c", line 138: warning: shortening ×_menu may lose significance
  28. "../main.c", line 138: illegal initialization
  29. "../main.c", line 138: warning: illegal combination of pointer and integer, op =
  30. "../main.c", line 138: warning: illegal combination of pointer and integer, op =
  31. "../main.c", line 138: warning: shortening &helv_menu may lose significance
  32. "../main.c", line 138: warning: illegal combination of pointer and integer, op =
  33. make: *** [main.o] Error 1
  34.  
  35.  
  36. Line 138 of iv/src/bin/idemo/main.c is the beginning of an initialization that
  37. looks just like several others before it:
  38.  
  39.  
  40. CommandInfo helv_menu[] = {
  41.     { "Normal", &App::do_nothing },
  42.     { "Bold", &App::do_nothing },
  43.     { "Oblique", &App::do_nothing },
  44.     { nil }
  45. };
  46.  
  47.  
  48. CommandInfo fontmenu[] = {                   <-------- This is line 138 ---<<<<
  49.     { "Times", nil, times_menu, 2 },
  50.     { "Helvetica", nil, helv_menu, 2 },
  51.     { nil }
  52. }
  53.  
  54. Can anyone figure this one out?
  55.  
  56. Thanks,
  57. --Malcolm
  58.  
  59. -- 
  60. --------------------------------------------------------------------------------
  61. Malcolm L. Franklin                email:   Malcolm_Franklin@chdasic.sps.mot.com
  62. Motorola ASIC CAD                  Phone:   (602) 821-4371
  63. CAE Systems                        Fax:     (602) 821-4963
  64. --------------------------------------------------------------------------------
  65.