[ale] Oddness from gcc and configure
Joe Knapka
jknapka at earthlink.net
Wed Aug 23 14:19:49 EDT 2000
If you don't mind building gcc yourself, you can get
the whole deal (C,C++,Objective C, FORTRAN) from
ftp://prep.ai.mit.edu/pub/gnu/gcc. As long as you follow
the INSTALL instructions carefully, it is usually
a very smooth build & install (although building all
of gcc does take a while - an hour or so on my K62-450,
and pretty much all day on my decrepit P75).
You almost certainly want gcc-2.95.2,tar.gz. The
gcc-core.*, gcc-g++.* etc files are for folks who want
to install support for individual languages; the
gcc-2.95.2.tar.gz file is everything in one tarball.
If your existing gcc is already 2.95.2, you might
get away with just building the gcc-g++ stuff, but
I've never tried it.
Re-emphasis: like I said, you do need to read
the INSTALL instructions carefully; don't just
blindly ./configure; make; make install. The
build directory and the --prefix config option
are important; you probably don't want the
defaults.
HTH,
-- Joe
"Beeland, Jason" wrote:
>
> So true, so true.
> I indeed do not have g++ installed apparently. Where would
> i find g++? I just looked all over mandrake.com, linux.org,
> freshmeat.net, and rpmfind.com. And I just can't seem to
> find it. (although most likely it's just because I'm not
> looking correctly, sorry to be such a newbie :P )
>
> By the way, I was floored by the number of responces that
> post got. Thank you all for your help, hopefully I'll
> get my head screwed on straight someday. :P
>
> -Jason Beeland
>
> -----Original Message-----
> From: Mike Kachline [mailto:kachline at medept17.coon.gatech.edu]
> Sent: Wednesday, August 23, 2000 12:27 PM
> To: Beeland, Jason
> Cc: 'ale at ale.org'
> Subject: Re: [ale] Oddness from gcc and configure
>
> On Wed, 23 Aug 2000, Beeland, Jason wrote:
>
> > Just got one really strange error from a configure...
> >
> >
> > creating cache ./config.cache
> > checking for c++... no
> > checking for g++... no
> > checking for gcc... gcc
> > checking whether the C++ compiler (gcc ) works... no
> > configure: error: installation or configuration problem: C++ compiler
> cannot
> > create executables.
> >
> > Anyone know what could be making gcc not able to make executables?
> <snip>
> I've seen this one before. I think it's related to the compiler
> not being able to link into std libraries. Take a look at the
> "config.log" which was created, and you'll get more information pointing
> to why the compiler didn't work.
>
> From the output which you posted, it looks a lot like configure
> tried to find a C++ compiler, couldn't, and then as a last ditch attempt,
> tried using gcc (usually just a C compiler) to compile a C++ program. gcc
> probably couldn't find all of the c++ standard libraries and stopped
> (hence, offering the "cannot create executables" error.). Thus, my first
> question to you would be "do you have a C++ compiler installed?" Usually,
> "g++" is used for building C++ apps.
>
> - Mike
> ======================================
> Michael Kachline
> mailto:kachline at brightstar.gt.ed.net
> http://brightstar.gt.ed.net/kachline
> ======================================
>
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
*** Joseph Knapka ***
In any formula, constants (especially those obtained from handbooks)
are to be treated as variables.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list