* Undef symbol: __gxx_personality_v0
@ 2002-09-13 7:32 Judy
2002-09-13 8:12 ` Claudio Bley
0 siblings, 1 reply; 2+ messages in thread
From: Judy @ 2002-09-13 7:32 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Undef symbol: __gxx_personality_v0
2002-09-13 7:32 Undef symbol: __gxx_personality_v0 Judy
@ 2002-09-13 8:12 ` Claudio Bley
0 siblings, 0 replies; 2+ messages in thread
From: Claudio Bley @ 2002-09-13 8:12 UTC (permalink / raw)
To: gcc-help
>>>>> "Judy" == Judy <Judyk@INNERLOGIX.com> writes:
Judy> When I compile and link with verbose : gcc -v testfork.cpp
Judy> -o testfork
Judy> I get an undefined symbol __gxx_personality_v0, referenced
Judy> in a variety of files each time: /var/tmp//ccY2uzqa.o
Judy> /var/tmp//ccm6rAsS.o /var/tmp//ccq09F7S.o
Judy> /var/tmp//ccXCBX4c.s
Judy> Please, can you tell me what I'm doing wrong?
David Edelson already answered this question on this mailing list. Have
a look here: http://gcc.gnu.org/ml/gcc-help/2002-07/msg00186.html. You
might want to search google or the archive at first next time.
Why are you using the cpp extension for your C program? GCC recognizes
it as a C++ source file. If you want to compile a C++ program just use
the g++ compiler driver.
--
Claudio Bley _
ASCII ribbon campaign ( )
ICQ# 83197241 - against HTML email X
http://www.cs.uni-magdeburg.de/~bley/ & vCards / \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-13 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 7:32 Undef symbol: __gxx_personality_v0 Judy
2002-09-13 8:12 ` Claudio Bley
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).