arturoc / ofxHttpServer

http server openframeworks addon based on libmicrohttpd
15 stars 16 forks source link

listerner fault (?) #3

Open Cdriko opened 5 years ago

Cdriko commented 5 years ago

Hello I try tu compile the example under ofx0.10.1 / ubuntu 18.04 64bits

I've an error :

ServerExample/src/ofApp.cpp:17:27: error: no matching function for call to ‘ofxHTTPServer::setListener(ofApp&)’
  server->setListener(*this);
                           ^
In file included from /home/cedric/soft/of_v0.10.1_linux64gcc6_release/apps/myApps/ServerExample/src/ofApp.h:4:0,
                 from /home/cedric/soft/of_v0.10.1_linux64gcc6_release/apps/myApps/ServerExample/src/ofApp.cpp:1:
/home/cedric/soft/of_v0.10.1_linux64gcc6_release/addons/ofxHttpServer/src/ofxHTTPServer.h:74:7: note: candidate: void ofxHTTPServer::setListener(ofxHTTPServerListener&)
  void setListener(ofxHTTPServerListener & listener);
       ^~~~~~~~~~~
/home/cedric/soft/of_v0.10.1_linux64gcc6_release/addons/ofxHttpServer/src/ofxHTTPServer.h:74:7: note:   no known conversion for argument 1 from ‘ofApp’ to ‘ofxHTTPServerListener&’

is it possible to fix it ?