Closed
Description
Compiling with CMake fails:
[ 79%] Building CXX object CMakeFiles/regexp_benchmark.dir/util/benchmark.cc.o
/Users/mihai/Development/external/re2/util/benchmark.cc:83:3: error: use of undeclared identifier 'exit'
exit(2);
^
1 error generated.
make[2]: *** [CMakeFiles/regexp_benchmark.dir/util/benchmark.cc.o] Error 1
make[1]: *** [CMakeFiles/regexp_benchmark.dir/all] Error 2
make: *** [all] Error 2
applying:
diff --git a/util/benchmark.cc b/util/benchmark.cc
--- a/util/benchmark.cc
+++ b/util/benchmark.cc
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#include <algorithm>
#include <chrono>
fixes the issue.
Metadata
Metadata
Assignees
Labels
No labels