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

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