@Kaito_Kid wrote:
Hello,
I am starting to use OpenFrameworks with ofxGui.
I have the following lines:
primType2D.setName("2D"); primType2D.set(true); primType2D.addListener(this, &ofApp::primDim2DChanged);
here are the declarations of primType2D and primDim2DChanged:
ofParameter<bool> primType2D; bool primDim2DChanged();
On build, I fail with this:
'ofAddListener': none of the 5 overloads could convert all the argument types (compiling source file ofApp.cpp)
it originates from:
openFrameworks\types\ofParameter.h line 435
I have no idea what I'm doing wrong. I tried explicitly giving the priority and switching the bool function to a void function, but it doesn't make any difference.
Posts: 5
Participants: 3