When compiling with Makefile, I got error
/tmp/ccQ0q0g5.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
It seems that the some .so
or .a
files missing, but how can I know which one is missing from such an error report?
Makefile:
CFLAGS = -Iinclude/
CFLAGS += -m32
LDFLAGS = -Llib -llits -lrt -lpthread -Wl,-R,'lib'
server:server.cc
gcc -o server $(CFLAGS) $(LDFLAGS) server.cc