Well, I have the same problem and I can not find the answer to it
My code
class Option { protected: double m_K; double m_rate; double m_T; double m_u; double m_d; double m_volatility; virtual double FSm(double S0, int m, int j) const = 0; public: Option(double strikePrice, double rate, double T, double u, double d, double volatility) : m_K(strikePrice) , m_rate(rate) , m_T(T) , m_u(u) , m_d(d) , m_volatility(volatility) {} ... virtual ~Option() = default; } class CallOption : public Option { protected: double FSm(double S0, int j, int m) const override;
and I have a mistake
Undefined symbols for architecture x86_64: "vtable for CallOption", referenced from: CallOption::CallOption(double, double, double, double, double, double) in CallOption.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64
Any idea?
Yours faithfully
source share