home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12887 < prev    next >
Encoding:
Text File  |  1992-08-25  |  2.5 KB  |  63 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!nih-csl!alw.nih.gov!kgorlen
  3. From: kgorlen@alw.nih.gov (Keith Gorlen)
  4. Subject: Re: Trouble compiling NIH classes
  5. Message-ID: <1992Aug26.024609.997@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Organization: National Inst. of Health, DCRT, CSL
  8. References: <1992Aug19.181622.12608@tcsi.com> <RJESSE.92Aug22144049@netcom.Netcom.COM>
  9. Date: Wed, 26 Aug 1992 02:46:09 GMT
  10. Lines: 51
  11.  
  12. In article <RJESSE.92Aug22144049@netcom.Netcom.COM>, rjesse@netcom.Netcom.COM (Rick Jesse) writes:
  13. |> In article <1992Aug19.181622.12608@tcsi.com> sriram@tcs.com (Sriram Srinivasah) writes:
  14. |> 
  15. |>    Newsgroups: comp.lang.c++
  16. |>    Path: netcom.com!csus.edu!wupost!uunet!tcsi.com!sriram
  17. |>    From: sriram@tcs.com (Sriram Srinivasah)
  18. |>    Sender: news@tcsi.com
  19. |>    Organization: Teknekron Communications, Inc
  20. |>    Date: Wed, 19 Aug 1992 18:16:22 GMT
  21. |>    Lines: 20
  22. |> 
  23. |> 
  24. |> 
  25. |>    I used Sun's C++ compiler, and also Centerline's cfront 2.1 compatible compiler, 
  26. |>    and get the following error on compiling the NIH classes (the SUN CC version,
  27. |>    from alw.nih.gov)
  28. |> 
  29. |>    CC    -DNESTED_TYPES   -c -I../nihincl Arraychar.c
  30. |>    ./nihclconfig.h: 31: sparc redefined
  31. |>    "./nihclconfig.h", line 279: error: two exact matches for ENV_PC(): unsigned
  32. |>           int (const JMP_BUF &) and unsigned int &(JMP_BUF )
  33. |>    "./nihclconfig.h", line 280: error: two exact matches for ENV_SP(): unsigned 
  34. |>           int (const JMP_BUF &) and unsigned int &(JMP_BUF )
  35. |>    "./nihclconfig.h", line 281: error: two exact matches for ENV_FP(): unsigned 
  36. |>           int (const JMP_BUF &) and unsigned int &(JMP_BUF )
  37. |>    Compilation failed
  38. |> 
  39. |>    Can anyone give me some tips on this?
  40. |> 
  41. |>    Sriram,
  42. |> 
  43. |>    I'm getting the same errors using Sun's cfront 2.1 on a 4/110.  The
  44. |>    problem looks like the ENV_ functions are being overloaded at the
  45. |>    end of nihclconfig.h but the arguments from the previous defintions
  46. |>    of ENV_ in nihclconfig.h (the platform specific ones) have the
  47. |>    same arguments.  I haven't found a solution yet, but I'm posting
  48. |>    to K. Gorlen.  I'll let you know what happens.
  49. |> 
  50. |>    Rick Jesse
  51. |> 
  52. |>  
  53.  
  54. I just returned from a long vacation and am swamped with work, so I don't have time to investigate this right now.  However, I'll make a wild guess and say you should try compiling without the BUG_48 preprocessor symbol defined.
  55.  
  56. -- 
  57. Keith Gorlen
  58. National Institutes of Health
  59. Bethesda, MD 20892
  60. Phone: (301) 496-1111
  61. FAX: (301) 402-2867
  62. Internet: kgorlen@alw.nih.gov
  63.