diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index bb087fc..b138645 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -17,3 +17,4 @@ set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -W #set(CMAKE_LINK_LIBRARY_FLAG "-lrt") add_executable(udp2raw_cmake ${SOURCE_FILES}) target_link_libraries(udp2raw_cmake rt) +target_link_libraries(udp2raw_cmake pthread) diff --git a/log.h b/log.h index f801c9a..e14aeb5 100755 --- a/log.h +++ b/log.h @@ -3,7 +3,7 @@ #define UDP2RAW_LOG_MYLOG_H_ -#include +#include "common.h" using namespace std;