public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Evans <eje4@cornell.edu>
To: gcc-help@gcc.gnu.org
Subject: Help, zillions of undefined references
Date: Thu, 04 Mar 2004 20:15:00 -0000	[thread overview]
Message-ID: <5.2.1.1.2.20040304150219.00b7cd28@postoffice9.mail.cornell.edu> (raw)

Hi everyone,

I have a problem with a make I'm trying to do that is resulting in lots and 
lots of undefined reference errors (see excerpt from error output at end of 
message).  The programmer who wrote the program has no idea why all the 
functions are not being linked in.  He says it ought to work, and he's 
basically washed his hands of the thing and tells me that it is up to me to 
deal with the problem.  In my web searching I came across a message from a 
guy who said that the __gxx_personality_v0 reference error could be fixed 
by using LD=$(CXX) in the Makefile, but I tried that and it didn't work.  I 
am using gcc 3.2.2 on RH linux version 9.  I'm using the default make 
program that comes with RH 9.  Is this a problem that could be fixed by 
switching to a different version of gcc or a different version of make?  Is 
there some linker option in the Makefile that I need to set in order to get 
this thing to work?  Unfortunately I have little knowledge of gcc and 
make.  Any advice I could get on how to proceed to troubleshoot this 
problem would be greatly appreciated.  Thanks very much.

Eric

> > main.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> > xwindow.o(.text+0x12fa): In function `draw(_WidgetRec*, XButtonEvent*,
> > char**, int*)':
> > : undefined reference to `operator new(unsigned)'
> > xwindow.o(.text+0x1363): In function `draw(_WidgetRec*, XButtonEvent*,
> > char**, int*)':
> > : undefined reference to `operator delete(void*)'
> > xwindow.o(.text+0x136b): In function `draw(_WidgetRec*, XButtonEvent*,
> > char**, int*)':
> > : undefined reference to `_Unwind_Resume'
> > xwindow.o(.text+0x261e): In function `IMAGE_LIST::loadTsFile(_IO_FILE*)':
> > : undefined reference to `operator new(unsigned)'
> > xwindow.o(.text+0x2724): In function `IMAGE_LIST::loadTsFile(_IO_FILE*)':
> > : undefined reference to `operator new(unsigned)'
> > xwindow.o(.text+0x277a): In function `IMAGE_LIST::loadTsFile(_IO_FILE*)':
> > : undefined reference to `operator delete(void*)'
> > xwindow.o(.text+0x278f): In function `IMAGE_LIST::loadTsFile(_IO_FILE*)':
> > : undefined reference to `operator delete(void*)'
> > xwindow.o(.text+0x2797): In function `IMAGE_LIST::loadTsFile(_IO_FILE*)':
> > : undefined reference to `_Unwind_Resume'
> > xwindow.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
> > make_pulldown.o(.text+0x4ce): In function `deformexit(_WidgetRec*)':
> > : undefined reference to `operator delete[](void*)'
> > make_pulldown.o(.text+0x4e3): In function `deformexit(_WidgetRec*)':
> > : undefined reference to `operator delete(void*)'

             reply	other threads:[~2004-03-04 20:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 20:15 Eric Evans [this message]
2004-03-04 20:17 ` Ian Lance Taylor
     [not found] ` <5.2.1.1.2.20040304160333.00b778e8@postoffice9.mail.cornell .edu>
2004-03-04 21:16   ` Eric Evans
2004-03-04 21:34 lrtaylor
     [not found] <363801FFD7B74240A329CEC3F7FE4CC4015F3A1C@ntxboimbx07.micro n.com>
2004-03-05 14:29 ` Eric Evans
2004-03-05 14:37   ` Ian Lance Taylor
2004-03-05 15:18     ` Eric Evans
2004-03-05 15:44       ` Eljay Love-Jensen
2004-03-05 14:39   ` Eljay Love-Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.2.1.1.2.20040304150219.00b7cd28@postoffice9.mail.cornell.edu \
    --to=eje4@cornell.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).