home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14539 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.6 KB  |  68 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!world!aep
  3. From: aep@world.std.com (Andrew E Page)
  4. Subject: MPW C 3.2.3 Bug  (ETO #8)
  5. Message-ID: <BtLIBs.B39@world.std.com>
  6. Summary: MPW C Bug when using precompiled headers and the -i option
  7. Keywords: MPW C 3.2.3 ETO 8 BUG PRECOMPILED HEADERS
  8. Organization: The World Public Access UNIX, Brookline, MA
  9. Date: Wed, 26 Aug 1992 14:45:27 GMT
  10. Lines: 56
  11.  
  12.     I am experiencing the following problem with MPW C 3.2.3
  13.     
  14. When using precompiled headers in the following fasion:
  15.  
  16. #ifdef USE_PRECOMPILE
  17. #pragma load ":Headers:dirscanh.hpc"
  18. #endif
  19.  
  20. #ifndef __ERRORS__
  21. #include <Errors.h>
  22. #endif
  23. #ifndef __FILES__
  24. #include <Files.h>
  25. #endif
  26. #ifndef __MEMORY__
  27. #include <Memory.h>
  28. #endif
  29. #ifndef __DIRSCAN__
  30. #include <dirscanh.h>
  31. #endif
  32.  
  33. #ifdef PRECOMPILE
  34. #undef PRECOMPILE
  35. #pragma dump ":Headers:dirscanh.hpc"
  36. #endif
  37.  
  38.  
  39. The C compiler crashes.  I get a partial system bomb box with
  40. an active 'continue' button that puts me back into the MPW Shell.
  41.  
  42. the dependency for the C command in my make script is as follows:
  43.  
  44.         
  45. C_OPT = -i Andrew:include:
  46.  
  47. #
  48. # Headers
  49. #
  50. :Headers:dirscanh.hpc D Path.make dirscanh.h
  51.     C dirscanh.c -d PRECOMPILE {C_OPT}
  52. #
  53. # Objects
  54. #
  55. Path.c.o D Path.make Path.c dirscanh.h
  56.     C Path.c {C_OPT}
  57. dirscanh.c.o D Path.make dirscanh.h dirscanh.c
  58.     C dirscanh.c -d USE_PRECOMPILE {C_OPT}
  59.  
  60. This problem, however disapaears when I remove the 
  61. -i Andrew:include:
  62.  
  63. .
  64. -- 
  65. Andrew E. Page CTO(Warrior Poet)|   Decision and Effort The Archer and Arrow
  66. DSP Ironworks                   |     The difference between what we are
  67. Macintosh and DSP Technology    |           and what we want to be.
  68.