Re: [Cppcms-users] chat.cpp examples and boost/bind.hpp problem
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2019-03-30 06:03:53
|
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 > |