home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!cam-eng!cmh
- From: cmh@eng.cam.ac.uk (C.M. Hicks)
- Newsgroups: comp.sys.atari.st.tech
- Subject: GCC V2.2.2 Errors
- Summary: Problem installing GCC V2.2.2
- Message-ID: <1992Nov19.134307.16517@eng.cam.ac.uk>
- Date: 19 Nov 92 13:43:07 GMT
- Sender: cmh@eng.cam.ac.uk (C.M. Hicks)
- Organization: cam.eng
- Lines: 42
- Nntp-Posting-Host: tw604.eng.cam.ac.uk
-
- I have a problem installing GCC V2.2.2 on my ST (1040STF expanded to 4Meg,
- 48Meg HD, TOS 1.2, SM124). I have the two "hello" programs as follows:
-
- /* hello.c */
- #include <stdio.h>
- main()
- {
- printf("Hello World\n");
- return(0);
- }
-
- /* hello.cc */
- #include <stream.h>
- main()
- {
- cout << "Hello World\n";
- return(0);
- }
-
- I am invoking the compiler from Gulam, with, as far as I'm aware, the correct
- environment variables set.
-
- In the first case (hello.c) the program compiles and runs fine (implying that
- GCCEXEC, GNUINC, TEMP etc are correct).
-
- In the second, the preprocessor executes fine (indicating that GXXINC is OK)
- but the compiler proper gives several errors of the type:
-
- #-lines entering and leaving files don't match
-
- I believe that all my includes are of the correct patchlevel (GCC pl 80, G++
- pl 7), so what's the problem? All the binaries came from a.a.u.e. in the
- GCC 2.2.2 distribution.
-
- I am sorry for posting this to the net, since it's probably just me being
- thick, but I have had two very late nights trying to figure this one out.
-
- Thanks in advance for any help (email, or post if of general interest)
-
- Christopher Hicks (cmh@uk.ac.cam.eng)
- "If it breaks, it's not strong enough; if it doesn't, it's too heavy"
-
-