home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / tech / 4703 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.7 KB  |  58 lines

  1. Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sm86+
  3. Newsgroups: comp.sys.atari.st.tech
  4. Message-ID: <ceed3He00awKE4IUd4@andrew.cmu.edu>
  5. Date: Sun,  6 Sep 1992 19:14:27 -0400 
  6. From: Stefan Monnier <sm86+@andrew.cmu.edu>
  7. Subject: Re: c help
  8. In-Reply-To: <1992Sep6.618.8119@dosgate>
  9. References: <1992Sep6.618.8119@dosgate>
  10. Distribution: comp
  11. Lines: 45
  12.  
  13. Excerpts from netnews.comp.sys.atari.st.tech: 6-Sep-92 c help david
  14. snowdon@canrem.com (784)
  15.  
  16.  
  17. >    I'm am unable to compile the Motorola 6809 cross-assembler using
  18. > the H&S Sozobon C compiler due to two errors:
  19.  
  20. >            error in as.h (124): pointer type not allowed
  21. >            error in ffwd.c (10): pointer type not allowed
  22. >            2 errors
  23.  
  24. >    The code for as.h (lines 123 and 124) is:
  25.  
  26. > FILE    *Objfil =0;             /* object file's file descriptor*/
  27. > char    Obj_name[] = {"             "};
  28.  
  29. >    And the code for ffwd.c (lines 9 and 10) is:
  30.  
  31. > int     Forward =0;             /* temp file's file descriptor  */
  32. > char    Fwd_name[] = { "Fwd_refs" } ;
  33.  
  34. >    I'm just starting learn how to program in C and could use any
  35. > suggestions that you might have.
  36.  
  37. >       David
  38. > --
  39. > Canada Remote Systems  - Toronto, Ontario/Detroit, MI
  40. > World's Largest PCBOARD System - 416-629-7000/629-7044
  41.  
  42. Given this little piece of code, I would just suggest to remove
  43. the { and the } in lines 124 and 10 !
  44.  
  45. At least, these are syntax errors !
  46.  
  47.     Stefan Monnier
  48.  
  49.  
  50. -----------------------------------------------------
  51. -- On the average, people seem to be acting normal --
  52. -----------------------------------------------------
  53.  
  54.  
  55.  
  56.  
  57.  
  58.