libnonius / nonius

A C++ micro-benchmarking framework
https://nonius.io
Creative Commons Zero v1.0 Universal
359 stars 47 forks source link

fix: NONIUS_RUNNER generates main() #92

Closed chardan closed 7 years ago

chardan commented 7 years ago

Despite this: `#define NONIUS_RUNNER

include <nonius.h++>`

...main() was not being generated by the examples.

Signed-off-by: Jesse Williamson jwilliamson@suse.de

rmartinho commented 7 years ago

From the guide:

The library itself is header-only so you don't have to build it. It comes as a single header that you can drop somewhere and #include it in your code. You can grab the header from the releases page.

The examples build just fine if you follow the instructions.

If you want to build the examples from the repo directly, you need to build them by running ninja examples.