0

I am a beginner to C++, and I was trying to install cpp-httplib, but I keep running into these errors:

image

My C++ code looks like this:

#include <iostream>
#include "./httplib.h"

int main(void) {
    
  httplib::Server svr;

  svr.Get("/hi", [](const auto &, auto &res) {
    res.set_content("Hello World!", "text/plain");
  });

  std::cout << "start server..." << std::endl;
  svr.listen("0.0.0.0", 8080);
} 

I have used cmake in the directory, and generated the files, but I don't know what is causing this problem exactly.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
CJOSEPH
  • 67
  • 5

0 Answers0