I'm using openframeworks. This is based on C++.
I have the following code:
guiBaseObject *item = panel.addSlider("motor_speed", 0, 0, 100);
And I am unable to understand why I receive the following error.
/Users/CREATER/Documents/of_v0.8.4_osx_release/apps/myApps/MapamokStepper/src/MotorControl.cpp:38:20: Cannot initialize a variable of type 'guiBaseObject *' with an rvalue of type 'void'
If you want to have access to the slider, you can do something like this:
ofIntSlider motorSpeed;
panel.add(motorSpeed.setup("motor_speed", 0, 0, 100));