aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: WebServer: little problem while compiling latest amule from github for MacOS  (Read 4376 times)

mr_hyde

  • Global Moderator
  • Full Member
  • *****
  • Karma: 12
  • Offline Offline
  • Posts: 105

I had a compile error about wxSocketEvent while building latest amule from github.

To fix it I simply added the statement

Code: [Select]
#include <wx/socket.h>  // needed for wxSocketEvent.h

in src/weberver/src/WebServer.h

Please notice that the problem was related to the lines (in src/weberver/src/WebServer.h)

Code: [Select]
void OnWebSocketServerEvent(wxSocketEvent& event);
void OnWebSocketEvent(wxSocketEvent& event);

so probably an alternative way to fix the problem could be:

1) forward declaration of wxSocketEvent in WebServer.h
Code: [Select]

class wxSocketEvent; // forward declaration

class CWebServerBase : public wxEvtHandler {
protected:
[...]

2) add the include of <wx/socket.h> in WebServer.cpp

Bye,
  Mr Hyde


Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685

... and the proper way is to exclude wxSocket-related code from Boost.Asio builds. ;-)

Should be fixed by 4af1ed5.
Logged
concordia cum veritate