tmp/ccdLyHub.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status

Is actually a problem, gcc can compile .c file, if you named .cpp, then this will be gcc compiler error occurs.

In this situation:

1 (or can be compiled .c .c ++) with g ++ compiler

2. still using gcc compiler, but the file suffix to .c

Guess you like

Origin www.cnblogs.com/music-liang/p/11905134.html