home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / tech / 5713 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.6 KB  |  55 lines

  1. Path: sparky!uunet!mcsun!uknet!cam-eng!cmh
  2. From: cmh@eng.cam.ac.uk (C.M. Hicks)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: GCC V2.2.2 Errors
  5. Summary: Problem installing GCC V2.2.2
  6. Message-ID: <1992Nov19.134307.16517@eng.cam.ac.uk>
  7. Date: 19 Nov 92 13:43:07 GMT
  8. Sender: cmh@eng.cam.ac.uk (C.M. Hicks)
  9. Organization: cam.eng
  10. Lines: 42
  11. Nntp-Posting-Host: tw604.eng.cam.ac.uk
  12.  
  13. I have a problem installing GCC V2.2.2 on my ST (1040STF expanded to 4Meg,
  14. 48Meg HD, TOS 1.2, SM124). I have the two "hello" programs as follows:
  15.  
  16. /* hello.c */
  17. #include <stdio.h>
  18. main()
  19. {
  20.    printf("Hello World\n");
  21.    return(0);
  22. }
  23.  
  24. /* hello.cc */
  25. #include <stream.h>
  26. main()
  27. {
  28.    cout << "Hello World\n";
  29.    return(0);
  30. }
  31.  
  32. I am invoking the compiler from Gulam, with, as far as I'm aware, the correct
  33. environment variables set.
  34.  
  35. In the first case (hello.c) the program compiles and runs fine (implying that
  36. GCCEXEC, GNUINC, TEMP etc are correct).
  37.  
  38. In the second, the preprocessor executes fine (indicating that GXXINC is OK)
  39. but the compiler proper gives several errors of the type:
  40.  
  41.   #-lines entering and leaving files don't match
  42.  
  43. I believe that all my includes are of the correct patchlevel (GCC pl 80, G++
  44. pl 7), so what's the problem? All the binaries came from a.a.u.e. in the
  45. GCC 2.2.2 distribution.
  46.  
  47. I am sorry for posting this to the net, since it's probably just me being
  48. thick, but I have had two very late nights trying to figure this one out.
  49.  
  50. Thanks in advance for any help (email, or post if of general interest)
  51.  
  52. Christopher Hicks (cmh@uk.ac.cam.eng)
  53. "If it breaks, it's not strong enough; if it doesn't, it's too heavy"
  54.  
  55.