linking pthread library issue
问题 Am facing a problem that may be slightly complicated to explain and understand as giving the entire picture would be too big and difficult. Please excuse me for it. Consider the following Makefile: all: clients.so simulator backup LD_PRELOAD=/home/Juggler/client/clients.so ./simulator backup: backup.c libclient.a gcc backup.c -o backup -L /home/Juggler/client -L. -lclient -ldl simulator: simulator.c libclient.a gcc -g simulator.c -o simulator -L /home/Juggler/client -L. -lclient -ldl -pthread