• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
___gxx_personality_v0 undefined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: ___gxx_personality_v0 undefined
      • From: "Stephen C. Gilardi" <email@hidden>
  • Prev by Date: Re: Declarations near usage
  • Next by Date: Re: Cocoa and PortAudio!
  • Previous by thread: Re: Selecting Root of sub menu (NSMenu)
  • Next by thread: Re: ___gxx_personality_v0 undefined
  • Index(es):
    • Date
    • Thread