home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!think.com!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!bernina!wild
- From: wild@nessie.cs.id.ethz.ch (Markus Wild)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Help with GCC and G++
- Message-ID: <1992Dec20.181807.17440@bernina.ethz.ch>
- Date: 20 Dec 92 18:18:07 GMT
- References: <1992Dec18.131626.834@fwi.uva.nl> <1992Dec19.152246.6286@desire.wright.edu>
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
- Lines: 35
-
- In article <1992Dec19.152246.6286@desire.wright.edu> fheitkamp@desire.wright.edu writes:
- >In article <1992Dec18.131626.834@fwi.uva.nl>, solorzan@fwi.uva.nl (Valik Solorzano (I88)) writes:
- >> Hai everyone,
- >> I'm having problems trying to compile a C++ program with gcc on my Amiga.
- >> Every time I try I get a lot of errors, and the same program I did compile
- >> on a Sun Workstation with gcc any I din't get any errors.
- >>
- >> Is this because I'm not using the C++ version of gcc or what. Because when
- >> I try to use g++ on my Amiga I get the message 'g++ not executable'.
- >>
- >> Could someone tell me what i'm doing wrong.
- >> I use the gcc port for the Amiga, version 2.2.2.
- >
- > You need to make sure your program has a .cc extension otherwise
- > gcc thinks it's a C program instead of C++. I have gotton a C++
- > program to compile using the above suggestion and the following
- > command line: gcc [filename].cc -lg++ -o [filename]
- >
- > I'm still getting an Error message: undefined symbol
- > ___new_handler referenced from text segment.
-
- (gpp is an AREXX script, g++ is a /bin/sh script, for those that want a
- g++ frontend).
-
- The __new_handler bug is a known bug of the initial distribution. It has
- been fixed in fix1. Please get fix1, fix2 and fix3, and save yourself a lot
- of problems. Note: please set your STACK high enough while applying fix1,
- the later fixes set the stack themselves, I didn't know about the stack
- hunger of ar/ranlib when releasing fix1.
-
- -Markus
- --
- Markus M. Wild - wild@nessie.cs.id.ethz.ch | wild@amiga.physik.unizh.ch
- Vital papers will demonstrate their vitality by spontaneously moving
- from where you left them to where you can't find them.
-