Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 7 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:
- 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?