From: | |
Date: | 19 Feb 2001 at 23:22:25 |
Subject: | Re: Help with gcc |
Donald wrote:
> I compile the C version as follows :
> gcc -c -o ram:test.o ram:test.c
> and get error messages :
> gcc: cannot exec 'cpp': No such file or directory
> gcc: cannot exec 'cc1': No such file or directory
These file should be in the gg:bin, what may of happened if you
followed the instructions on the geekgadgets page is that you forgot
to add the gg: assign to your user startup. You also need to add
execute GG:Sys/S/GG-Startup. That script sets up all assigns and
paths as well as other things.
Also as a side note since you are compiling a single file then you
can use:
gcc -o ram:test ram:test.c
which will do all compiling and linking.
> Despite the errors an object file of the expected size is created.
> When I try to link it :
> gcc -o ram:test ram:test.o
> I get the error message :
> ld: failure reading string table size of ram:test.o
This is because the object was not properly created.
> (I get the same error messages when compiling and linking the C++
> code using g++).
I suggest first getting the C part set up first.
> Additionally, gcc came with an 'include' directory containing a
> massive amount of files, most of which I have not met before with
> StormC3. In accordance with the documentation I have set the
> environment variables GCC_INCLUDE_DIR &
> GPLUS_INCLUDE_DIR to contain the path to gcc's include directory.
There is no need to set these, GCC will search the defaults in its
dirs automatically(include, os-include).
> Where does g++ keep its includes?
Its in gg:include/g++-3
> In relation to that, I have all the Developer CD2.1 includes in
> StormC:Include, do I
> just need to change the contents of the environment variables to
> make gcc & g++ use them
> (bearing in mind that gcc has files that didn't come with StormC)?
No, because Storm has its own default includes and these may clash(eg
stdio.h). I suggest copy from the NDK35 to gg:os-include, remember
that you dont need the proto and pragmas, since GG comes with them(in
gg:include).
> Sorry for the long posting but I've never used a command line
> compiler before and have a lot of questions.
No problem, I am sure a lot of people have these problems, I had them
recently when I installed it.
BTW the cause of most problems is that GCC is case sensitive.
Shinda
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982621395/
---------------------------------------------------------------------_->