I tried to test an example of C++11 threads in Eclipse. But I got this message when running the program:
terminate called after throwing an instance of \'
The problem was solved by the comment of Jonathan Wakely.
I added -pthread to C/C++ Build -> Settings -> Tool Settings -> Cross G++ **Linker** -> Miscellaneous -> Other Flags and the program worked correctly.
-pthread
C/C++ Build -> Settings -> Tool Settings -> Cross G++ **Linker** -> Miscellaneous -> Other Flags
Thank you Jonathan.