This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Undef symbol: __gxx_personality_v0


Dear GNU staff,

I am trying to run an extremely simple program on Sparc Solaris 2.6, using :
GNU CPP version 3.1 (cpplib) (sparc ELF)
GNU C++ version 3.1 (sparc-sun-solaris2.6)
                compiled by GNU C version 3.1.


#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

main()
{
   int i;
   int sum = 0;

   pid_t rtn = fork();

   for( i = 1; i <= 5; i++ )
   {
      printf( "i = %d\n", i );
      sum += i;
   }
   printf( "sum = %d\n", sum );
}

When I compile and link with verbose :  gcc -v testfork.cpp -o testfork

I get an undefined symbol   __gxx_personality_v0, referenced in a variety of
files each time:
     /var/tmp//ccY2uzqa.o 
     /var/tmp//ccm6rAsS.o
     /var/tmp//ccq09F7S.o
     /var/tmp//ccXCBX4c.s 

Please, can you tell me what I'm doing wrong?
 
Thank you,
Judy



Judy Komorita
InnerLogix, Inc.
Houston, TX   77082


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]