-nodefaultlibs and gxx_personality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to use -nodefaultlibs to exclude libstdc++
but something is trying to call `__gxx_personality_v0'
which is in libstdc++.  How can one compile a simple
C++ program without linking against libstdc++?

$ cat test.cpp
#include <stdio.h>
int main(int argc, char** argv)
{
  printf("Hello World\n");
  return 0;
}

$ g++  -nodefaultlibs  test.cpp  -lgcc_s -lgcc -lc
-lgcc_s -lgcc -o tester
/tmp/ccokT7Gw.o:(.eh_frame+0x11): undefined reference
to `__gxx_personality_v0'

Thank you,

ivan@xxxxxxxxxx

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux