c++includevisual-studio-2015websocket++

VS2015 can't find include headers in subdirectory


I've been trying to include the WebSocket++ header only library to a project in VS2015. I've added the websocketpp folder to the source directory and included it in the project, so that the hpp files shows up in the header filter. But when trying to compile example code for the library I keep getting the error that it can't open the source files for:

#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>

I've been searching around for a solution and tried adding the websocketpp folder to the project include directories and additional include directories, but haven't found a solution to the problem. Anyone know how to fix this problem?


Solution

  • As @dresherjm pointed out the error was that the include path was to the websocketpp folder, but the include path expected the folder containing the websocketpp folder.

    To fix the error the include directory needed to be changed to the folder containing the websocketpp folder.