libnonius / nonius

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

nonius.h++ should include main.h++ #99

Closed shikharbhardwaj closed 6 years ago

shikharbhardwaj commented 6 years ago
#define NONIUS_RUNNER
#include <nonius/nonius.h++>

generates undefined reference to main.

#define NONIUS_RUNNER
#include <nonius/nonius.h++>
#include <nonius/main.h++>

Works.

Is this a change not documented in the guides?

Examples don't compile without this change.

rmartinho commented 6 years ago

Please grab a release from the releases page: https://github.com/rmartinho/nonius/releases. This is mentioned in the second paragraph of the documentation.