我正在尝试测试libwebsockets API https://github.com/warmcat/libwebsockets/tree/master/minimal-examples/api-tests/api-test-lws_tokenize
每当我键入
cmake . && make
构建代码。我遇到以下错误。
Scanning dependencies of target lws-api-test-lws_tokenize
[ 50%] Building C object CMakeFiles/lws-api-test-lws_tokenize.dir/main.c.obj
C:\Users\pro12\Desktop\New folder (2)\libwebsockets\minimal-examples\api-
tests\api-test-lws_tokenize\main.c:16:27: fatal error: libwebsockets.h: No
such file or directory
#include <libwebsockets.h>
^
compilation terminated.
我的问题是在哪里添加libwebsockets.h文件? 我已经安装了mingW,并且正在使用gcc编译器。我从这里https://ci.appveyor.com/project/lws-team/libwebsockets下载了libwebsockets版本,该版本位于C:\ Program Files(x86)/ libwebsockets