This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ Question
- To: gcc-help at gcc dot gnu dot org
- Subject: g++ Question
- From: Jones Wilson <burrodomo at mail dot com>
- Date: Fri, 18 Aug 2000 19:41:14 -0400 (EDT)
I have installed gcc-2.95.2 from source. I have a problem compiling C++
programs. No matter how simple the program, even just int main() { return
0; }, when I compile it using g++ and then try running it, I get only a
segmentation fault. There are no warnings or errors on compiling or
linking, and the executable is created, but when I run that executable I
only get "Segmentation Fault", no matter what. I am assuming this is some
problem with my configuration of gcc, but I'm clueless as to what, so if
anyone could help me I'd be grateful. Here are the steps I used to compile
gcc, from the gcc-build dir:
root:gcc-build# ../gcc-2.95.2/configure --prefix=/usr \
> --with-gxx-include-dir=/usr/include/g++ \
> --enable-shared --enable-languages=c,c++
root:gcc-build# make bootstrap
root:gcc-build# make install
root:~# cd /lib
root:lib# ln -s ../usr/lib/gcc-lib/<host>/2.95.2/cpp cpp
root:lib# cd /usr/lib
root:lib# ln -s gcc-lib/<host>/2.95.2/cpp cpp
root:lib# cd /usr/bin
root:bin# ln -s gcc cc
I am using the 2.2.14 kernel with a Linux distribution built following the
Linux From Scratch HOWTO 2.3.5b. My C compiler does seem to be working
fine. Is this some problem with how I compiled gcc, or some library thing?
Thanks very much for any help.
Tom
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup