Search code examples
c++raspberry-piwebserverifttt

How to use Crow on Raspberry Pi


I'm trying to start a webserver using a Raspberry Pi for listening to POST requests from IFTTT. I'm programming in C++. I first tried Crow, which wouldn't work at all, giving the error "Handler function cannot have void return type...". I saw that others had also had issues with it, so I looked for a new solution. I found RestINIO, which looks great, but I can't figure out how to install it on my Raspberry PI. I looked at the docs, but couldn't figure out how to get it to install.

I know this probably isn't the right place for this, but any help would be much appreciated!


Solution

  • Here's what I had to do (simple fix):

    In Geany:

    Go to Build > Set Build Commands

    Under both "compile" and "build", add the following text to the end of the string: -lboost_system

    Compilation is successful!