Ok, i added these...
using namespace std;
class AlienDetector : public SigC::Object
i get now the following errors, that seems to say that the signal isn't properly declared.
cout << "There are aliens in the carpark!" << endl;
mydetector.signal_detected.connect( sigc::ptr_fun(warn_people) );
Whats wrong now?
AlienDetector.h:16: error: ‘class AlienDetector::sigc’ has not been declared
AlienDetector.h:16: error: ISO C++ forbids declaration of ‘signal’ with no type
AlienDetector.h:16: error: expected ‘;’ before ‘<’ token
AlienDetector.cc: In member function ‘void AlienDetector::run()’:
AlienDetector.cc:5: error: ‘signal_detected’ was not declared in this scope
AlienDetector.cc: In function ‘int main()’:
AlienDetector.cc:16: error: ‘class AlienDetector’ has no member named ‘signal_detected’
AlienDetector.cc:16: error: ‘warn_people’ was not declared in this scope