delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/06/16/18:25:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <20040616215835.45795.qmail@web60901.mail.yahoo.com>
Date: Wed, 16 Jun 2004 14:58:35 -0700 (PDT)
From: Thomas Tutone <thomas8675309 AT yahoo DOT com>
Subject: Re: undefined reference error
To: djgpp AT delorie DOT com
MIME-Version: 1.0

"anonymous" <iunknown2k4 AT yahoo DOT co DOT in> wrote:

> I installed DJGPP Version 2.03 on Win 98 Se, I can 
> run 
> programs from 
> RHIDE, but when I try to run any program from the 
> prompt
> I get an error like:
> 
> > gcc ptr.c
> e:/djgpp/tmp/cc76VdZ8.o(.eh_frame+0x11):PTR.C: 
> undefined 
> reference to
> `___gxx_personality_v0'
> collect2: ld returned 1 exit status
> 
> 
>  gcc -v shows version is 3.3.3
> I read the FAQ - it talks about math libraries and 
> C++, 
> but I am 
> running simple C programs using only stdio and 
> stdlib.

Please post the smallest compilable piece of code that
reproduces this error, along with the command line you
used.  It's hard to diagnose in a vacuum.

This error commonly occurs when a user tries to
compile a C++ program but forgets to link in the C++
standard library.  Replacing "gcc" with "gpp" on the
command line makes the problem go away if that is the
cause.

You indicate that you are programming in C, not C++. 
If so, then my solution won't help.

In any case, post code so we can see what's going on.

Best regards,

Tom

















		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019