Open birdie-github opened 2 months ago
First, you need to apply this patch:
--- sac-0.7.4.orig/src/common/md5.h 2024-06-16 21:12:56.000000000 +0000 +++ sac-0.7.4/src/common/md5.h 2024-06-19 11:51:13.545373630 +0000 @@ -2,6 +2,7 @@ #define MD5_H #include <cstdint> +#include <stddef.h> namespace MD5 { typedef struct{ diff -urN sac-0.7.4.orig/src/libsac/libsac.cpp sac-0.7.4/src/libsac/libsac.cpp --- sac-0.7.4.orig/src/libsac/libsac.cpp 2024-06-16 21:12:56.000000000 +0000 +++ sac-0.7.4/src/libsac/libsac.cpp 2024-06-19 11:53:07.365617325 +0000 @@ -1,4 +1,5 @@ #include <algorithm> +#include <cstring> #include "libsac.h" #include "pred.h" #include "../common/timer.h"
And the you can compile it using:
g++ main.cpp cmdline.cpp ./common/*.cpp ./file/*.cpp ./libsac/*.cpp ./model/*.cpp ./pred/*.cpp -std=c++20 -O3 -march=native -osac
First, you need to apply this patch:
And the you can compile it using: