#gnu C++ problems
7 messages in this thread
I have downloaded the gnu C++ compiler and am evidently having a problem
installing it properly. I uncompressed the files but cannot seem to locate any
instructions as to where the individual directories are supposed to reside in
relation to each other or what "assigns" have to made for the system to find
the needed files. In perticular, my system can't locate the "include" files.
When I try to compile the "hello world" program I get a message that the stdio
include file can't be found.
Can anybody shed some light on this for me?
Thanks!
Dan Wolfson
Daniel,
which version of gnu C++ did you download ? or where
without this information i won't be able to help
cheers,
Guil
Thanks for offering the help!
I downloaded the all of the first 10 GCCxx.LHA files less the ones for the
68020 CPU (in other words the files that said they were for all Amigas). I
"installed" them by decrunching them and placing all the files and drawers in a
directory I created called: Work:Programming/gnu.
I tried running the Install program but kept getting requests for files I don't
have.
Any ideas?
Dan Wolfson
I havn't downloaded this version of Gcc yet I must do it and then I could help
I have been using gcc for years without big problem only the last version which
I have 2.6.0 made problem to get runnig I use it on two kinds of processors
68000 and 68040. Did you read carefully the file ReadMe-2.6.3. Is your directoy
arrangement the same as described in the file ? Did you made the right Assigns
in User-startup ?
Do check, I can't upgrade now for I wait to get my new Turbo 040 on my 2000 to
do this sort of change and 2.6.0 works good ..
I did follow the Readme directions. I am trying to compile the infamous "hello
world" program (should be easy, no?). First, it complained that it couldn't
find my stdio.h file. I discovered that this header file isn't included in the
gnu distribution. I then loaded it stdio.h from an old Lattice compiler that I
have. It sees this but complained about parsing certain lines in the header
file (Lattice C didn't complain about it!). Anyway, I modified the header file
so that gcc C didn't complain (by deleting some spaces in some lines). I now
get the following message when I try to compile:
ld: No such file or directory for crt0.o
I have absolutely no idea what that means. Any ideas?
thanks
Dan Wolfson
First:
crt0.o is a header file to link first.It must be gcc:lib directory. Second:
you must use stdio.h version 5.17 from 6/3/91.I is normally included in the
gcc++ try again to unpack all the stuff with library
OK
Guil
I tried unpacking the gcc++ file again, but no difference. It didn't have the
stdio.h file but it did have a file called iostdio.h. Is this the same? Should
I refernce iostdio.h instead of stdio.h?
Also (excuse my ignorance here) you said that "crt0.o is a header file to link
first. It must be in the gcc:lib directory".
I can find no file named "crt0.o". Even if I could, how do I "link it first"?
I'm getting a little concerned because I have a C++ class coming up in a couple
weeks and I really need a working compiler.
Thanks again for your help!
Dan Wolfson