public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4171: unresolved __gxx_personality_v0 in simple namespace example
@ 2001-08-29 10:46 Phil Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Edwards @ 2001-08-29 10:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/4171; it has been noted by GNATS.

From: Phil Edwards <pedwards@disaster.jaj.com>
To: dpollard@scitools.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/4171: unresolved __gxx_personality_v0 in simple namespace example
Date: Wed, 29 Aug 2001 12:20:46 -0400

 On Wed, Aug 29, 2001 at 01:33:40PM -0400, dpollard@scitools.com wrote:
 > >Description:
 > Compiling this simple 3 line file results in the unresolveable
 > symbol __gxx_personality_v0.
 > 
 > >How-To-Repeat:
 > File Main.cpp:
 >   namespace Test { void test(); }
 >   using namespace Test;
 >   int main() { test(); }
 > 
 > % gcc -c Main.cpp
 > % nm Main.o
 >          U _ZN4Test4testEv
 > 00000000 ? __FRAME_BEGIN__
 >          U __gxx_personality_v0
 > 00000000 T main
 
 'U' means undefined, not unresolvable.  If you had called fopen() it
 would also should up as 'U' because fopen() is not defined in your code.
 You are compiling, not linking.
 
 __gxx_personality_v0 is defined in a library, like fopen and strcmp and cout
 and malloc and....  If you link your program in addition to just compiling
 it, the external symbols will be resolved.  Since you are writing C++,
 we recommend you use g++ (or c++) to do the linking step, rather than gcc:
 
     gcc -c Main.cpp
     g++ Main.o
     ./a.out
 
 
 Luck++;
 Phil
 
 -- 
 Would I had phrases that are not known, utterances that are strange, in
 new language that has not been used, free from repetition, not an utterance
 which has grown stale, which men of old have spoken.
                                      - anonymous Egyptian scribe, c.1700 BC


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/4171: unresolved __gxx_personality_v0 in simple namespace example
@ 2001-08-31 11:12 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2001-08-31 11:12 UTC (permalink / raw)
  To: dpollard, gcc-bugs, gcc-prs, nobody

Synopsis: unresolved __gxx_personality_v0 in simple namespace example

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Aug 31 11:12:33 2001
State-Changed-Why:
    Not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4171&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/4171: unresolved __gxx_personality_v0 in simple namespace example
@ 2001-08-29 10:36 dpollard
  0 siblings, 0 replies; 3+ messages in thread
From: dpollard @ 2001-08-29 10:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: dpollard

>Number:         4171
>Category:       c++
>Synopsis:       unresolved __gxx_personality_v0 in simple namespace example
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 29 10:36:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Doug Pollard
>Release:        3.0.1
>Organization:
>Environment:
System: Linux linux.dp.scitools.com 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.1/configure --with-gnu-as --with-as=/usr/local/sysbin/as --with-gnu-ld --with-ld=/usr/local/sysbin/ld
>Description:
Compiling this simple 3 line file results in the unresolveable symbol __gxx_personality_v0.

>How-To-Repeat:
File Main.cpp:
  namespace Test { void test(); }
  using namespace Test;
  int main() { test(); }

% gcc -c Main.cpp
% nm Main.o
         U _ZN4Test4testEv
00000000 ? __FRAME_BEGIN__
         U __gxx_personality_v0
00000000 T main
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-31 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29 10:46 c++/4171: unresolved __gxx_personality_v0 in simple namespace example Phil Edwards
  -- strict thread matches above, loose matches on Subject: below --
2001-08-31 11:12 lerdsuwa
2001-08-29 10:36 dpollard

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).