From: | |
Date: | 19 Feb 2001 at 20:31:28 |
Subject: | Re: Help with gcc |
Hi,
I have downloaded gcc from GeekGadgets (version 2.95.1) and am
having some problems in getting it to work. I have followed the advice
given previously about compiling and linking a file and am trying to create
a simple 'Hello world' program.
I have written a C version and a C++ version of the program.
I compile the C version as follows :
gcc -c -o ram:test.o ram:test.c
and get error messages :
gcc: installation problem, cannot exec 'cpp': No such file or directory
gcc: installation problem, cannot exec 'cc1': No such file or directory
I assume that they are files required by the compiler.
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
What do the message mean and how do I get rid of them?
(I get the same error messages when compiling and linking the C++ code
using g++).
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.
Where does g++ keep its includes?
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)?
Sorry for the long posting but I've never used a command line compiler before and have
a lot of questions.
Thanks,
Donald
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982611113/
---------------------------------------------------------------------_->