home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!usenet.ins.cwru.edu!news.ysu.edu!malgudi.oar.net!hyperion!desire.wright.edu!fheitkamp
- From: fheitkamp@desire.wright.edu
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Help with GCC and G++
- Message-ID: <1992Dec19.152246.6286@desire.wright.edu>
- Date: 19 Dec 92 15:22:46 EST
- References: <1992Dec18.131626.834@fwi.uva.nl>
- Organization: Wright State University
- Lines: 31
-
- 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.
-
- Does anyone know this one?
-
- >
- > Thanks to all
- >
- > You can contact me at:
- >
- > solorzan@carol.fwi.uva.nl
- >
- > ------Valik----
- Fred Heitkamp ** Not an organization **
-