home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4440 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.byu.edu!yvax.byu.edu!physc1.byu.edu!robertson
  2. Newsgroups: comp.os.os2.programmer
  3. Subject: gcc error in <stdio.h>
  4. Message-ID: <1992Aug25.210547.128@physc1.byu.edu>
  5. From: robertson@physc1.byu.edu
  6. Date: 25 Aug 92 21:05:47 -0600
  7. Distribution: world
  8. Organization: Brigham Young University
  9. Lines: 29
  10.  
  11.    Hello,
  12.  
  13.   I posted this to gnu.gcc.help last week and received no answers.  I
  14.   was wondering if any one else had this problem, and if I have changed
  15.   the header in a way that will be detrimental later.  Thanks for any
  16.   help
  17. >
  18. >   I just started using gcc today.  I am new to c programming as well.
  19. >   After installing gcc for OS/2 and following the directions in the
  20. >   README and INSTALL files in the \gnu\doc directory, I read through
  21. >   the first 30-40 pages about the command line parameters.  I thought
  22. >   I understood so I tried to invoke the command from the gnu directory:
  23. >
  24. >          gcc samples\sample1.c -ansi -pedantic -g
  25. >
  26. >   which tells me that I have an error:
  27. >
  28. >          E:\GNU\GCC-INCLUDE/stdio.h:313: syntax error before `int'
  29. >
  30. >   I assumed that 313 meant in line 313 so I looked it up
  31. >   It is this:
  32. >          static inline int__sputc[int_c, FILE *_p] {
  33.                   ^^^^^^
  34.     I deleted this word and now it works.  I thought to delete it
  35.     because when I looked up static in my c book it always preceded a
  36.     variable type.  So I tried it.   Why does it now work?  Did I mess
  37.     the header up at all?
  38.  
  39.    Jim Robertson      robertson@physc1.byu.edu
  40.