[comp.sys.atari.st] Requirements for g++

marc@sequoia.cray.com (Marc Bouron) (06/06/91)

Hi People, 

Simple question time: do I need gcc if I want to use g++?  Having forked out the
dosh on Lattice C v5 (pretty goo, BTW) I'd rather not have to get another C
compiler :-)

Cheers,

[M][a][r][c]


################################################################################
#                           #  marc@sequoia.cray.com           #     .   .     #
#  Marc CR Bouron           #  M.Bouron@cray.co.uk     (ARPA)  #    _|\ /|_    #
#  Cray Research (UK) Ltd.  #  M.Bouron@crayuk.uucp  (DOMAIN)  #   (_|_V_|_)   #
#  +44 344 485971 x2208     #  M.Bouron@uk.co.cray    (JANET)  #     |   |     #
#                           #  ...!ukc!crayuk!M.Bouron (UUCP)  #               #
################################################################################

gjh@hplb.hpl.hp.com (Graham Higgins) (06/07/91)

++ Simple question time: do I need gcc if I want to use g++?  Having forked out
++ the dosh on Lattice C v5 (pretty goo, BTW) I'd rather not have to get 
++ another C compiler :-)

Doesn't' look like it, but that's just a guess, this is part of the readme from
the koeln.de version of G++

++ Here is a version of G++ 1.39.0 for the Atari ST based on GCC 1.39.
++ You should know a few things about it:
++ 
++ 1. G++.TTP is the C++ main driver. The *only* difference between GCC.TTP
++    and G++.TTP is that G++ assumes `.c' files to be C++ code while GCC
++    assumes `.c' files to be C code. You will normally use the extension
++    `.cc' for C++ code. In this case there is no need to use G++.TTP;
++    just use the equivalent GCC.TTP.
++ 
++ 2. When compiling C++ code you should `setenv UNIXMODE=._/LAH' because
++    the GNU C++ lib header files have case-sensitive names, i.e. `String.h'
++    is different from `string.h' !!!
++ 
++ 3. When linking C++ code (with GCC.TTP or the equivalent G++.TTP) you *must*
++    explicitly specify the `-lg++' linker option.
++ 
++ 4. A few bugs fixes and extensions were made to the standard GNU C headers,
++    libs, and utilities (like `gcc-ld.ttp'). Do not use other versions
++    of GNU C headers, libs, and utilities.

Graham
======

------------------------------------------------------------------
Graham Higgins                  |  gjh%ghiggins@hpl.hp.co.uk
Hewlett-Packard Labs            |  gjh%ghiggins@hplb.hpl.hp.com
Filton Road, Stoke Gifford      |  gjh%hplb.csnet@csnet-relay.arpa 
Bristol, U.K.                   |  ...!mcvax!ukc!hplb!gjh          
Tel: +44 272 799910 x24014         Fax: +44 272 790554             
------------------------------------------------------------------
Disclaimer: My opinions above are exactly that, mine and opinions.
------------------------------------------------------------------

U.Kuehn <ZVD007@DMSWWU1C.BITNET> (06/07/91)

In article <104150.26002@timbuk.cray.com>, marc@sequoia.cray.com (Marc Bouron)
says:
>Simple question time: do I need gcc if I want to use g++?  Having forked out  e
>th
>dosh on Lattice C v5 (pretty goo, BTW) I'd rather not have to get another C
>compiler :-)

I have both, g++ and gcc, but I think you dont need the c compiler.
You need as minimum:
 g++.ttp        the compiler driver
 gcc-cc1p.ttp the c++ compiler
gcc-cpp.ttp    the preprocessor
 gcc-as.ttp     the assembler, used to assemble the output of the compiler
 gcc-ld.ttp     the linker
and the libraries ( C and!! C++ ) and the header-files
I hope this helps.

U.Kuehn