sleepy-discord icon indicating copy to clipboard operation
sleepy-discord copied to clipboard

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

Open Ocisra opened this issue 5 years ago • 7 comments

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

Ocisra avatar Jul 16 '18 15:07 Ocisra

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 avatar Jul 16 '18 15:07 yourWaifu

For now, try adding the preprocessor define _WEBSOCKETPP_CPP11_THREAD_

yourWaifu avatar Jul 16 '18 15:07 yourWaifu

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

Ocisra avatar Jul 16 '18 15:07 Ocisra

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/

yourWaifu avatar Jul 19 '18 02:07 yourWaifu

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

Ocisra avatar Jul 19 '18 12:07 Ocisra

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

shy-degenerate avatar Dec 15 '20 19:12 shy-degenerate

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

yourWaifu avatar Dec 16 '20 01:12 yourWaifu