Re: [Cppcms-users] chat.cpp examples and boost/bind.hpp problem
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2019-03-31 02:33:13
|
BTW if you look to the first lines in the code #ifdef USE_STD_TR1_BIND #include <tr1/functional> using std::tr1::bind; #elif defined USE_STD_BIND #include <functional> using std::bind; #else #include <boost/bind.hpp> using boost::bind; #endif So just define USE_STD_BIND and you are good to go בתאריך שבת, 30 במרץ 2019, 14:03, מאת Artyom Beilis <art...@gm... >: > in geneally allmost all examples are implemented using C++2003 so boost > was used for simple things not in C++11 yet. You can either use boost > header only or use std::bind or C++11 lambda for this stuff > > Not anything critical. > > Artyom > > בתאריך שבת, 30 במרץ 2019, 04:10, מאת Hurst, Mark <Mar...@sl...>: > >> Hello! >> >> Newbie here; loving the framework so far! >> >> Running on ubuntu 16.04. Downloaded *cppcms-1.2.1.tar.bz2* and followed >> instructions to build and install. No errors. >> >> Simpler examples like, hello_world, url_mapping and others build and run >> correctly. >> >> However, *~/cppcms-1.2.1/examples/json_rpc_chat/* * fails to build*: >> >> markhurst@ubuntu:~/cppcms-1.2.1/examples/json_rpc_chat$ *make* >> *g++ -O2 -Wall -g chat.cpp -o chat -lcppcms -lbooster* >> *chat.cpp:23:26: fatal error: boost/bind.hpp: No such file or directory* >> compilation terminated. >> Makefile:7: recipe for target 'chat' failed >> make: *** [chat] Error 1 >> >> I've searched best I can in online documentation, mailing list, and can't >> find solution. Because instructions say boost is NOT needed, and should not >> be used anyway: >> >> 1. Why does *<boost/bind.hpp>* and actual use of *boost::bind()* appear >> in chat.cpp and other example sources? >> 2. How do I fix the problem? Are there corrected examples? >> >> *THANK YOU, anyone who has an answer*. I'm trying to demo the framework >> to our development team and show the more complex capabilities. >> >> Mark Hurst >> Principal Software Engineer >> SlingTV / Dish Networks >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > |