___gxx_personality_v0 undefined
___gxx_personality_v0 undefined
- Subject: ___gxx_personality_v0 undefined
- From: Roland Besserer <email@hidden>
- Date: Wed, 16 Oct 2002 21:02:48 -0700
Hi,
I'm compiling a simple test program that uses pthreads. I use identical
source code and feed it to the compiler as C (.c), C++ (.cc) and
Objective-C (.m). Being a test it gets compiled with "cc -o t
t.[c|m|cc].
Everything is nice and fine for the C and Objective-C case - compiles,
links, runs. When compiled as C++, I get the undefined symbol
"___gxx_personality_v0" from ld.
Anybody know what this is about? The error does not appear if I remove
pthread calls.
Using 10.2.1
Test program:
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void *
theThread(void *a)
{
printf("Hi Thread\n");
}
main()
{
pthread_attr_t attr;
void *arg = NULL;
int res = 0;
pthread_t tId;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
res = pthread_create(&tId, &attr, theThread, arg);
printf("Hello\n");
getchar();
exit(0);
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.