libnonius / nonius

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

undefined reference to `main' #66

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hey,

I've tried to compile the examples but I'm getting undefined reference to main git log shows : 78df23a7ed94a7311dfa10db531fe2a4c810f479

g++ -o example2 example2.c++ --std=c++14 -I/home/rsoeldner/custom/nonius/include -I/home/rsoeldner/custom/nonius/include/nonius -lpthread
/usr/lib/../lib64/crt1.o: In function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.19/csu/../sysdeps/x86_64/start.S:118: undefined reference to `main'
collect2: error: ld returned 1 exit status
ghost commented 8 years ago

The problem is fixed withinclude <nonius_single.h++>

rmartinho commented 8 years ago

No, it's not. This is fixed by using a nonius release, as documented in the second paragraph of the documentation, or by performing a build, which will be documented for contributors in the next release.

rmartinho commented 8 years ago

See #21