I'm having problems to compile following cpp header file. Any Ideas what I have done wrong?
I’m using Eclipse CDT with cygwin library.
Tanks for any help.
cpp
#ifndef _COMPONENT_H_
#define _COMPONENT_H_
#ifdef _WIN32
#pragma warning( disable: 4786)
#endif
#include <string>
using namespace std;
#include "appexc.hh"
class Component;
class AppDef;
class Chart;
class Component {
public:
/// Constructor.
Component();
/// Destructor.
virtual ~Component();
/// Setup the component.
virtual void Setup( AppDef& app) throw (AppException)=0 ;/* compile error on this line */
/// Run the component.
virtual void Run( Chart *chart) throw (AppException)=0 ;/* compile error on this line */
/// Returns #true# if the component needs to have a module loaded.
virtual bool NeedsModule();
string name;
};
#endif
*edit: Please use code tags in the future, thanks!

CDT Error messages :
overriding `virtual void Component::Run(Chart*) throw (AppException)' component.hh line 32
overriding `virtual void Component::Setup(AppDef&) throw (AppException)' component.hh line 30
This post has been edited by Martyr2: 14 Mar, 2008 - 12:32 PM