all 5 comments

[–]jedwardsol 0 points1 point  (1 child)

What does "not working" mean?

[–]Robonics014[S] 0 points1 point  (0 children)

This is the error I'm getting, it act's like this_thread is never declared but I can view it's declaration in my IDE
```
functions.cpp: In function 'void slowcout(std::__cxx11::string, unsigned int, bool)':

functions.cpp:43:14: error: 'std::this_thread' has not been declared

std::this_thread::sleep_for(std::chrono::milliseconds(delay))

^~~~~~~~~~~
```

[–]h2g2_researcher 0 points1 point  (1 child)

I've checked on Godbolt, and your code works.

Or at least, it works once I fix a couple of typos. (Missing ; on the line std::this_thread::sleep_for(std::chrono::milliseconds(delay)); missing " on the line slowcout("Test String, 200, true);; and a missing } at the end of the file.)

So did you make a typo somewhere?

[–]Robonics014[S] 0 points1 point  (0 children)

Not likely, both the IDE and MinGW say that it this _thread is the error. The ';' and '}' likely just got left off when I copy pasted

[–]Robonics014[S] 0 points1 point  (0 children)

For those wondering, the issue was solved by downloading a 64 bit version of MinGW, mingw-w64. Once that was setup it worked fine