libwebsocketsを使用していますが、自分で実装したデモ コードをコンパイルできません。
私は作成しましたcontext
:
struct libwebsocket_context *context;
...
context = libwebsocket_create_context(&info);
libwebsocket_context
private-libwebsockets.h で定義されている struct のメンバーにアクセスしようとすると、次のようになります。
struct libwebsocket_context {
struct pollfd *fds;
struct libwebsocket **lws_lookup; /* fd to wsi */
int fds_count;
int max_fds;
int listen_port;
...
};
例えば、
printf("%d\n", context->listen_port);
コンパイラは、
error: dereferencing pointer to incomplete type
ありがとう!