When I try to compile this simple program:
#include void f() { std::this_thread::sleep_for(std::chrono::seconds(3)); } int main() { std::
Need to define _GLIBCXX_USE_NANOSLEEP on top of the source code.
_GLIBCXX_USE_NANOSLEEP
#define _GLIBCXX_USE_NANOSLEEP //add it top of c++ code
OR, Compile with following commamd:
g++ a.cpp -o a -std=c++0x -D_GLIBCXX_USE_NANOSLEEP //compile c++ code ./a // run c++ code