Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!hpltoad!ghiggins!gjh From: gjh@hplb.hpl.hp.com (Graham Higgins) Newsgroups: comp.sys.atari.st Subject: Re: Requirements for g++ Message-ID: Date: 7 Jun 91 08:14:00 GMT References: <104150.26002@timbuk.cray.com> Sender: news@hplb.hpl.hp.com (Usenet News Administrator) Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 40 In-Reply-To: marc@sequoia.cray.com's message of 6 Jun 91 16:39:27 GMT Nntp-Posting-Host: ghiggins.hpl.hp.com ++ 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. ------------------------------------------------------------------