Ver Fonte

Added -lpthread

yhirose há 8 anos atrás
pai
commit
7a87dd1039
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      example/Makefile
  2. 1 1
      test/Makefile

+ 1 - 1
example/Makefile

@@ -1,6 +1,6 @@
 
 CC = clang++
-CFLAGS = -std=c++14 -I.. -Wall -Wextra
+CFLAGS = -std=c++14 -I.. -Wall -Wextra -lpthread
 #OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
 
 all: server client hello simplesvr benchmark

+ 1 - 1
test/Makefile

@@ -1,6 +1,6 @@
 
 CC = clang++
-CFLAGS = -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra
+CFLAGS = -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE -I.. -I. -Wall -Wextra -lpthread
 #OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
 
 all : test