🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #905

gcc error in <stdio.h>

#905
From: robertson
Date: Wed, 26 Aug 1992 03:05
29 lines
1606 bytes
   Hello,

  I posted this to gnu.gcc.help last week and received no answers.  I
  was wondering if any one else had this problem, and if I have changed
  the header in a way that will be detrimental later.  Thanks for any
  help
>
>   I just started using gcc today.  I am new to c programming as well.
>   After installing gcc for OS/2 and following the directions in the
>   README and INSTALL files in the \gnu\doc directory, I read through
>   the first 30-40 pages about the command line parameters.  I thought
>   I understood so I tried to invoke the command from the gnu directory:
>
>          gcc samples\sample1.c -ansi -pedantic -g
>
>   which tells me that I have an error:
>
>          E:\GNU\GCC-INCLUDE/stdio.h:313: syntax error before `int'
>
>   I assumed that 313 meant in line 313 so I looked it up
>   It is this:
>          static inline int__sputc[int_c, FILE *_p] {
                  ^^^^^^
    I deleted this word and now it works.  I thought to delete it
    because when I looked up static in my c book it always preceded a
    variable type.  So I tried it.   Why does it now work?  Did I mess
    the header up at all?

   Jim Robertson      robertson@physc1.byu.edu
Technical Details
Message-ID: <1992Aug25.210547.128@physc1.byu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.byu.edu!yvax.byu.edu!physc1.byu.edu!robertson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.byu.edu!yvax.byu.edu!physc1.byu.edu!robertson
Newsgroups: comp.os.os2.programmer
Subject: gcc error in <stdio.h>
Message-ID: <1992Aug25.210547.128@physc1.byu.edu>
From: robertson@physc1.byu.edu
Date: 25 Aug 92 21:05:47 -0600
Distribution: world
Organization: Brigham Young University
Lines: 29