You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, a sample code, #include "libwebsockets.h" int main () { struct lws_context context_; }
gcc error: error: field 'context_' has incomplete type 'lws_context'
You can use -M with gcc to dump the paths of the include files used.
It sounds like you're including ./libwebsockets.h, or from some other path, which does not have the right stuff in. Eg, from some older lws or something completely different.
Normally, you use sudo make install or some variant of it to install the include tree (which has many files, not just libwebsockets.h). You can guide your gcc to the right place with -I to where you installed the right pieces.
hi, I have cross compile the source code success, install OK , but get this error. how to resolve this? I have include libwebsockets.h
The text was updated successfully, but these errors were encountered: