Thanks For your quick reply. But it is still not working. I think i have to explain you everything abt IDE and compiler etc.. I am using below setups.
1. MINGW/MINSys
2. Eclipse Helios IDE for windows.
3. GCC 3.4.5
4. I am adding one class i.e APIEx from new menu .
5. It adds two files i.e APIEx.h and APIEx.cpp
Class APIEX.h
--------------------------------
#ifndef APIEX_H_
#define APIEX_H_
#include <exception>
class APIEx: public std::exception {
public:
APIEx() throw(); //Error- than previous declaration `APIEx::APIEx() throw ()'
virtual ~APIEx() throw(); //Error-than previous declaration `virtual APIEx::~APIEx() throw ()'
};
#endif /* APIEX_H_ */
Class APIEx.CPP
----------------------------
#include "APIEx.h"
APIEx::APIEx() { //Error- declaration of `APIEx::APIEx()' throws different exceptions
}
APIEx::~APIEx() { //Error- declaration of `virtual APIEx::~APIEx()' throws different exceptions
}