[Libwebsockets] /usr/local/include/libwebsockets.h:487:8: error: forward declaration of ‘struct libwebsocket’

satya gowtham kudupudi satyagowtham.k at gmail.com
Sun Sep 28 18:03:34 CEST 2014


I've installed libwebsockets pulled from git.

I've included /usr/local/include directory where I found libwebsockets.h

while compiling my profect I get the above error. I found the struct
lebwebsocket definition in the privarte-libwebsockets.h source file. How to
install this source file?

g++    -c -g -D_DEBUG -I. -I/usr/local/include -I/usr/include/ferryfair
-std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/WSServer.o.d" -o
build/Debug/GNU-Linux-x86/WSServer.o WSServer.cpp

In file included from FerryStream.h:19:0,
                 from WSServer.cpp:47:
WSServer.cpp: In static member function ‘static int
WSServer::callbackFairPlayWS(libwebsocket_context*, libwebsocket*,
libwebsocket_callback_reasons, void*, void*, size_t)’:
WSServer.cpp:465:83: error: invalid use of incomplete type ‘struct
libwebsocket’
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20140928/84cb56b3/attachment.html>


More information about the Libwebsockets mailing list