Thread View: comp.sys.sgi.misc
4 messages
4 total messages
Started by Hermann Lauer
Wed, 05 Mar 1997 00:00
C++ with gcc on IRIX 6.2
Author: Hermann Lauer
Date: Wed, 05 Mar 1997 00:00
Date: Wed, 05 Mar 1997 00:00
55 lines
2382 bytes
2382 bytes
Hello, I have installed gcc on IRIX 6.2 after MKN's receipt, and it works for C files. When I tried to build groff, the configure script fails: 1) ./configure loading cache ./config.cache checking for prefix by ... checking for grops... /net/sharesgi/bin/grops checking for gcc... gcc checking whether we are using GNU C... yes checking whether gcc accepts -g... no checking for c++... c++ checking whether we are using GNU C++... yes checking whether c++ accepts -g... no checking whether cross-compiling... no checking that C++ compiler can compile simple program... no configure: error: a working C++ compiler is required If I gave gcc explicitly as c++ compiler: 2)CXX=gcc ./configure loading cache ./config.cache checking for prefix by ... checking for grops... /net/sharesgi/bin/grops checking for gcc... gcc checking whether we are using GNU C... yes checking whether gcc accepts -g... no checking for c++... gcc checking whether we are using GNU C++... yes checking whether gcc accepts -g... no checking whether cross-compiling... no checking that C++ compiler can compile simple program... yes checking that C++ static constructors and destructors are called... no configure: error: a working C++ compiler is required Have anybody used gcc with C++ static constructors and destructors on IRIX 6.2 ? Maybe it's only an installation problem, but it would be nice to know if anybody has got this working before I waste a lot of time on this. Thanks for any reply. Hermann -- Hermann Lauer Bildverarbeitungsgruppe des Interdiziplinaeren Zentrums fuer wissenschaftliches Rechnen, Universitaet Heidelberg INF 368; 69120 Heidelberg; Tel: (06221)548826 Fax: (06221)545224 Email: Hermann.Lauer@iwr.uni-heidelberg.de
Re: C++ with gcc on IRIX 6.2
Author: Kevin Cozens
Date: Thu, 06 Mar 1997 00:00
Date: Thu, 06 Mar 1997 00:00
21 lines
1405 bytes
1405 bytes
Hermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de> wrote:
>Maybe it's only an installation problem, but it would be nice to know if
>anybody
>has got this working before I waste a lot of time on this.
If it might be an installation problem look at my page at
http://www.interlog.com/~kcozens/sgi/ on installing GCC. I haven't tried
compiling C++ code so far. Hope that might give you some help.
Cheers!
Kevin. (http://www.interlog.com/~kcozens/)
Internet:kcozens@interlog.com |"What are we going to do today, Borg?"
AMPRnet:ve3syb@bbs.ve3rpi.ampr.org |
Packet:ve3syb@va3bbs.#scon.on.ca.na|"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
Re: C++ with gcc on IRIX 6.2
Author: Olaf Weber
Date: Thu, 06 Mar 1997 00:00
Date: Thu, 06 Mar 1997 00:00
15 lines
1008 bytes
1008 bytes
Hermann Lauer writes: > I have installed gcc on IRIX 6.2 after MKN's receipt, and it works > for C files. > When I tried to build groff, the configure script fails: > checking that C++ compiler can compile simple program... no > configure: error: a working C++ compiler is required Did you install libg++? As a first guess, that is your problem. -- Olaf Weber
Re: C++ with gcc on IRIX 6.2
Author: Shankar Unni
Date: Fri, 07 Mar 1997 00:00
Date: Fri, 07 Mar 1997 00:00
18 lines
1302 bytes
1302 bytes
Hermann Lauer (Hermann.Lauer@iwr.uni-heidelberg.de) wrote:
> If I gave gcc explicitly as c++ compiler:
> 2)CXX=gcc ./configure
You have to say "CXX=g++" (or "c++"), don't you? gcc is the C compiler, and
while it may know how to compile .c++ files, it won't attempt to link .o's
as C++ objects.
In fact, your original configure seems to have found g++ ("checking for
c++... c++"): "c++" is one of the names by which g++ is installed. The SGI
C++ compiler is actually called "CC".
--
Shankar Unni shankar@chromatic.com
Chromatic Research (408) 752-9488
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads