yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
705 stars 96 forks source link

Project build fail boost/thread.hpp: no such file or directory #100

Open Ocisra opened 6 years ago

Ocisra commented 6 years ago

capture Hi, I think I've failed on linking the directories but I work with Code::Blocks and begin with it a few days ago. I don't see any folder name "boost". I reinstalled everything twice and it doesn't work. I really need help, thanks

yourWaifu commented 6 years ago

I don't use boost but I'm going to guess that this has something to do with websocket++. However, what would be nice is knowing what file is trying to include that. With gcc, use -H to see all included header files.

yourWaifu commented 6 years ago

For now, try adding the preprocessor define _WEBSOCKETPP_CPP11_THREAD_

Ocisra commented 6 years ago

How to do ? Il don't Know what a preprocessor is

yourWaifu commented 6 years ago

Sorry about being late, but I have directions here for predecessor defines. https://yourwaifu.github.io/sleepy-discord/link.html#preprocessor-definitions

Also you could just look it up, the first result gives you an answer. https://www.google.com/search?q=c%2B%2B+preprocessor+define http://www.cplusplus.com/doc/tutorial/preprocessor/

Ocisra commented 6 years ago

Thanks for answering, i've try an other time and it works, i May have done something wrong Thank you !

shy-degenerate commented 3 years ago

Hi, I keep getting boost/thread.hpp not found error even with _WEBSOCKETPP_CPP11_THREAD_ defined. Is it possible to fix it? I use mingw64 gcc 8.10 compiler

yourWaifu commented 3 years ago

Hi, I keep getting boost/thread.hpp not found error even with _WEBSOCKETPP_CPP11_THREAD_ defined. Is it possible to fix it? I use mingw64 gcc 8.10 compiler

Are you compiling with c++ 11 or higher? Make sure cmake is aware of this as well. @Necrosekai