5 years, 9 months ago.  This question has been closed. Reason: Unclear question

Why do I get the compiler message "Stepcalc::Stepcalc(); provides no initializer for "{"

In stepcalc.h:

class Stepcalc { public: Stepcalc(); constructor . . .

In stepcalc.cpp file:

  1. include "stepcalc.h"

Stepcalc::Stepcalc() { math_crossover = 2; } . .

When giving the error message the compiler highlights the line containing the "{".

I've done numerous constructors like this and never had a problem.

Note: the "1. include" in the displayed question is really "#include".

Any ideas?