From: ssurhode@suma1.rdg.ac.uk (Paul Rhodes)
Newsgroups: gnu.g++.help
Subject: Problems with g++ on a Sun4 SunOs 4.1.1
Date: 29 Jul 92 15:05:11 GMT
Distribution: gnu
Organization: Reading University, England
Originator: netnews@uts.mcc.ac.uk


  
  I can't install g++. Our system consists of a number of Sun 4's with
NFS mounted partitions, running SunOs 4.1.1. I have been trying to
install g++ version 1.40.3 for ages. Originally I was finding problems
because I was using gcc version 2.2.2 to try and make it and g++ could
find the files that it needed (I think that's what the problem was
anyhow).  Now, I have finally got g++ in place, but I can't get the
library in place... (Library version 1.39.0)

  Part of the problem might be that I wish to put g++ in the
directory... /usr/appl/new/gnu with the usual subdirectories of bin,
lib, include, and man in that directory..... I also wish to have the
library files in their own directory.. ie...
/usr/appl/new/gnu/lib/g++1.40.3.

At the end of this, I'll put a transcript of my make session....


Can you help me ? Am I using the right versions of gcc/g++/libg++ ??

thanks in advance,

Paul Rhodes
University of Reading, England

-------------------------------------------------------------------------
ssssgw08 ~/new/gnu/src/libg++-1.39.0 % make
(cd src; gmake GXX="g++"  GXXFLAGS=" -I/usr/appl/new/gnu/src/libg++-1.39.0/g++-include -g -O -fstrength-reduce  -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall  -pipe" GXXLDFLAGS="-L/usr/appl/new/gnu/src/libg++-1.39.0/src -lg++ -lm " LIBDIR="/usr/appl/new/gnu/lib/g++1.40.3" SRCIDIR="/usr/appl/new/gnu/src/libg++-1.39.0/g++-include" CC="gcc" CFLAGS=" -I/usr/appl/new/gnu/lib/gcc-include -I/usr/include -I/usr/appl/new/gnu/src/libg++-1.39.0/g++-include -g -O -fstrength-reduce -fdela




yed-branch -Wall  -pipe" RANLIB="granlib" LDXX="/usr/appl/new/gnu/lib/g++1.40.3/gcc-ld" GXXCRT1="/usr/appl/new/gnu/lib/g++1.40.3/crt1+.o" MAKE="gmake" prefix="/usr/appl/new/gnu" VPATH="/usr/appl/new/gnu/src/libg++-1.39.0/g++-include" AR="gar" PROTODIR="/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/gen" GENCLASS="/usr/appl/new/gnu/src/libg++-1.39.0/genclass")
g++ -I/usr/appl/new/gnu/src/libg++-1.39.0/g++-include -g -O -fstrength-reduce  -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall  -pipe -c  AllocRing.cc
0: unknown flag -+
AllocRing.cc:1: parse error before `/'
In file included from /usr/appl/new/gnu/src/libg++-1.39.0/g++-include/std.h:33, from AllocRing.cc:27:
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:1: parse error before `/'
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:231: parse error before `}'
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:231: warning: type specifier for member `_iob' omitted
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:231: warning: data definition lacks type or storage class
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:383: parse error before `/'
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:383: warning: multi-character character constant
/usr/appl/new/gnu/src/libg++-1.39.0/g++-include/stdio.h:895: malformatted character constant
gmake: *** [AllocRing.o] Error 1
*** Error code 1
make: Fatal error: Command failed for target `src'
ssssgw08 ~/new/gnu/src/libg++-1.39.0 % 
Newsgroups: gnu.g++.help,comp.lang.c++