i get now the following errors, that seems to say that the signal isn't properly declared.

Code:

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

Whats wrong now?

Thanks
Hork83

06-22-2007

Daved

As I said, you would need to add AlienDetector:: in front of the function names in the cc file. You also added it in front of the names in the .h file, which is not what you want. Remove all the AlienDetector:: in the h file and try again. Your cc file looks fine now.