Using C++11 thread with pure virtual thread function

Solution 1:

You need to add -pthread to g++ command line, as explained in this answer to a similar question: https://stackoverflow.com/a/6485728/39622.