C++ - Using Pistache as your web server.
Please follow the instruction to compile and install pistache. Pretty straightforward.
Compile the code below with the following command :-
g++ -g -Wall main.cc -std=c++11 -I/usr/local/include/ -L/usr/local/lib/ -lpistache -lpthread
Then run your code using
./a.out
In my setup, i need to set LD_LIBRARY_PATH to the folder i used to build pistache, as it required libpistache.so.0 to run.
echo $LD_LIBRARY_PATH
/home/jeremy/tmp/test/pistache/pistache/build/src
Finally goto :-
http://localhost:9080/
Comments