Skip to content

Instantly share code, notes, and snippets.

@dcoeurjo
Created January 15, 2014 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcoeurjo/8443487 to your computer and use it in GitHub Desktop.
Save dcoeurjo/8443487 to your computer and use it in GitHub Desktop.
Build error
make
Scanning dependencies of target benchmark
[ 14%] Building CXX object CMakeFiles/benchmark.dir/src/benchmark.cc.o
In file included from /Users/xxxx/local/src/benchmark/src/benchmark.cc:15:
/Users/xxxx/local/src/benchmark/include/benchmark/benchmark.h:264:3: error: unknown type name 'pthread_t'
pthread_t thread_;
^
/Users/xxxxx/local/src/benchmark/src/benchmark.cc:1090:26: error: 'function_' is a private member of 'benchmark::internal::Benchmark'
shared_->instance->bm->function_(*this);
^
/Users/xxxx/local/src/benchmark/include/benchmark/benchmark.h:459:21: note: declared private here
BenchmarkFunction function_;
^
2 errors generated.
make[2]: *** [CMakeFiles/benchmark.dir/src/benchmark.cc.o] Error 1
make[1]: *** [CMakeFiles/benchmark.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment