Hello all,
i'm trying to get a program run with libsigc++. As startup i went through the walkthrough there and sort of used this tutorialpart for the program: http://libsigc.sourceforge.net/libsi...html/ch03.html
Here is the code:
myFeedback.h
Code:#include <iostream> #include <string> #include "sigc++/object.h" #include "sigc++/signal.h" using namespace std; class myFeedback : public SigC::Object { public: //Constructer and Destructor myFeedback(); ~myFeedback(); void setFeedback(string); sigc::signal<void> upData; sigc::signal<void> upWarning; };
myFeedback.c
It is not a standalone program, but trying to compile the project (this file), i get the error that the signals are "not declared in this scope" within "setFeedback", but i declared the signals in the header, like in the example in the tutorial. Anyone got some help?Code:#include "myFeedback.h" //****************************************************************** // Constructor and Destructor //****************************************************************** BehaviorRealizerFeedback() {}; ~BehaviorRealizerFeedback() {}; void setFeedback(string mydata) { if (mydata == "data") { //store the data before emitting a signal upData.emit(); } else if (mydata == "warning") { //store the warning before emitting a signal upWarning.emit(); } else { cout << "Unknown Feedbacktype named " << type << " ." <<endl; }; };
Thank you
Hork83



LinkBack URL
About LinkBacks


