delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Cesar Rabak <crabak AT acm DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: undefined reference error |
Date: | Wed, 16 Jun 2004 20:25:21 -0300 |
Lines: | 28 |
Message-ID: | <40D0D6E1.3010609@acm.org> |
References: | <f7d84cf3 DOT 0406160734 DOT 1165f217 AT posting DOT google DOT com> |
Mime-Version: | 1.0 |
X-Trace: | news.uni-berlin.de brwNxYKBnEswPECfz4tPNwlb3adrxvlgLuysxLjX/dVv1bIcg= |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
X-Accept-Language: | pt-br, pt |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
anonymous escreveu: > 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 > The message above shows 'PTR.C'. If the filename happens to be seen as having an uppercase 'C', gcc will assume your file is C++ but will link in only C libraries running in this trouble. Try to rename the file so it appears to gcc as C. If this is not acceptable to you, for checking if is this behaviour the reason, invoke gcc as follows: gcc -x c ptr.c and report the results. -- Cesar Rabak
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |