Re: Question on using C++ API

2015-11-18 Thread Marc Lehmann
On Wed, Nov 18, 2015 at 05:38:15PM +0100, Thorsten Lück wrote: > void operator() (EV_P_ ev_io &w, int revents) the documented syntax for operator () would be this, taken straight from the example for the set (object *) method: void operator() (ev::io &w, int revents) --

Re: Question on using C++ API

2015-11-18 Thread Alexander Klauer
Hi Thorsten, On 11/18/2015 05:38 PM, Thorsten Lück wrote: struct udp_client { void operator() (EV_P_ ev_io &w, int revents) { } }; Does anybody has an idea what I am doing wrong? have you tried without the loop (EV_P_) in the signature? Take care, Alexander -- Dr. Alexander K

Question on using C++ API

2015-11-18 Thread Thorsten Lück
Hi @all, I want to write a small embedded application listing on UDP. It is compiling using the C-Api but not using the C++-Api. In both cases I am using the gnu g++ compiler: > $ /opt/crosstool-ng-powerpc/bin/powerpc-e500v2-linux-gnuspe-g++ --version > powerpc-e500v2-linux-gnuspe-g++ (crosstool-