home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / help / 2878 < prev    next >
Encoding:
Text File  |  1993-01-07  |  4.7 KB  |  149 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!think.com!ames!pioneer.arc.nasa.gov!chu
  3. From: chu@pioneer.arc.nasa.gov (Susie Chu RCS)
  4. Subject: gcc in djgpp failed
  5. Message-ID: <1993Jan7.185454.23450@news.arc.nasa.gov>
  6. Sender: usenet@news.arc.nasa.gov
  7. Organization: NASA Ames Res. Ctr. Mtn Vw CA 94035
  8. Distribution: gnu
  9. Date: Thu, 7 Jan 1993 18:54:54 GMT
  10. Lines: 137
  11.  
  12. Can someone answer me?  Why gcc a file containing a line of 
  13. "#define O_TEXT 4" , it gives the following strange error. (See j.out 
  14. below)
  15.  
  16. C> gcc -c -DMSDOS j.c 
  17. c:/tmp/cc000046.i:1: parse error before `file'
  18. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\d'
  19. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\c'
  20.  (   ...  )
  21. ++++++++++++++++++++++++++++  j.c +++++++++++++++++++++++++++++++++++++
  22. #include "fig.h"
  23. #include "junk.h"
  24. ++++++++++++++++++++++++++++  junk.h +++++++++++++++++++++++++++++++++++++
  25. #define        O_TEXT            4
  26. ++++++++++++++++++++++++++++  fig.h +++++++++++++++++++++++++++++++++++++
  27. /*
  28.  * FIG : Facility for Interactive Generation of figures
  29.  * Copyright (c) 1985 by Supoj Sutanthavibul
  30.  *
  31.  * "Permission to use, copy, modify, distribute, and sell this software and its
  32.  * documentation for any purpose is hereby granted without fee, provided that
  33.  * the above copyright notice appear in all copies and that both that
  34.  * copyright notice and this permission notice appear in supporting
  35.  * documentation, and that the name of M.I.T. not be used in advertising or
  36.  * publicity pertaining to distribution of the software without specific,
  37.  * written prior permission.  M.I.T. makes no representations about the
  38.  * suitability of this software for any purpose.  It is provided "as is"
  39.  * without express or implied warranty."
  40.  *
  41.  */
  42.  
  43. #include <X11/Xos.h>
  44.  
  45. #include <sys/stat.h>
  46. #ifndef SYSV
  47. #include <fcntl.h>
  48. #endif
  49. #include <pwd.h>
  50. #include <signal.h>
  51.  
  52. #include <stdio.h>
  53. #include <ctype.h>
  54. #include <errno.h>
  55.  
  56. extern int      errno;
  57. extern int      sys_nerr;
  58. extern char    *sys_errlist[];
  59.  
  60. #include <math.h>
  61.  
  62. #ifdef SYSV
  63. #define u_int uint
  64. #endif
  65.  
  66. #ifndef M_PI
  67. #define M_PI    3.14159265358979323846
  68. #define M_PI_2  1.57079632679489661923
  69. #endif
  70.  
  71. #define        min2(a, b)    (((a) < (b)) ? (a) : (b))
  72. #define        max2(a, b)    (((a) > (b)) ? (a) : (b))
  73. #define        min3(a,b,c)    ((((a<b)?a:b)<c)?((a<b)?a:b):c)
  74. #define        max3(a,b,c)    ((((a>b)?a:b)>c)?((a>b)?a:b):c)
  75. #define        round(a)    (int)((a)+.5)
  76. #define        signof(a)    (((a) < 0) ? -1 : 1)
  77.  
  78. #define        DEF_NAME    "unnamed.fig"
  79.  
  80. #include <X11/Xlib.h>
  81. #ifdef MSDOS
  82. #include <X11/cursorfo.h>      /* QDK 01/06/1993  6:26pm. */
  83. #else
  84. #include <X11/cursorfont.h>
  85. #endif
  86. #ifdef MSDOS
  87. #include <X11/Intrinsc.h>      /* QDK 01/06/1993  6:26pm. */
  88. #else
  89. #include <X11/Intrinsic.h>
  90. #endif
  91. #ifdef MSDOS
  92. #include <X11/StringDe.h>      /* QDK 01/06/1993  6:26pm. */
  93. #else
  94. #include <X11/StringDefs.h>
  95. #endif
  96. #include <X11/Shell.h>
  97.  
  98. #include <X11/Xaw/Command.h>
  99. #include <X11/Xaw/Label.h>
  100. #include <X11/Xaw/Dialog.h>
  101. #include <X11/Xaw/Box.h>
  102. #include <X11/Xaw/Form.h>
  103. #ifdef MSDOS
  104. #include <X11/Xaw/Cardinal.h>      /* QDK 01/06/1993  6:26pm. */
  105. #else
  106. #include <X11/Xaw/Cardinals.h>
  107. #endif
  108. #include <X11/Xaw/Text.h>
  109. #ifdef MSDOS
  110. #include <X11/Xaw/AsciiTex.h>      /* QDK 01/06/1993  6:26pm. */
  111. #else
  112. #include <X11/Xaw/AsciiText.h>
  113. #endif
  114. #ifdef MSDOS
  115. #include <X11/Xaw/MenuButt.h>      /* QDK 01/06/1993  6:26pm. */
  116. #else
  117. #include <X11/Xaw/MenuButton.h>
  118. #endif
  119. #ifdef MSDOS
  120. #include <X11/Xaw/SimpleMe.h>      /* QDK 01/06/1993  6:26pm. */
  121. #else
  122. #include <X11/Xaw/SimpleMenu.h>
  123. #endif
  124. #include <X11/Xaw/Sme.h>
  125. #include <X11/Xaw/SmeBSB.h>
  126. #include <X11/Xaw/Toggle.h>
  127. ++++++++++++++++++++++++++++++ j.out ++++++++++++++++++++++++++++++++
  128. c:/tmp/cc000046.i:1: parse error before `file'
  129. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\d'
  130. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\c'
  131. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\d'
  132. c:/tmp/cc000046.i:42: warning: unknown escape sequence `\i'
  133. c:/tmp/cc000046.i:77: warning: unknown escape sequence `\d'
  134. c:/tmp/cc000046.i:77: warning: unknown escape sequence `\c'
  135. c:/tmp/cc000046.i:77: warning: unknown escape sequence `\d'
  136. c:/tmp/cc000046.i:77: warning: unknown escape sequence `\i'
  137.  ( ... lots and lots of similar lines)
  138. c:/tmp/cc000046.i:14993: warning: unknown escape sequence `\i'
  139. c:/tmp/cc000046.i:15148: warning: unknown escape sequence `\d'
  140. c:/tmp/cc000046.i:15148: warning: unknown escape sequence `\c'
  141. c:/tmp/cc000046.i:15148: warning: unknown escape sequence `\d'
  142. c:/tmp/cc000046.i:15148: warning: unknown escape sequence `\i'
  143. c:/tmp/cc000046.i:15161: malformatted character constant
  144.  
  145. net address: chu@pioneer.arc.nasa.gov
  146. UUCP: {ihnp4,ucbvax,nike,lll-crg}!ames!pioneer!chu
  147. Disclaimer: NASA is in no way responsible for the content of the previous mes-
  148.     sag I take full and sole responsibility.
  149.