Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: numMathOps(0) #44

Open
yudataguy opened this issue Oct 28, 2024 · 2 comments
Open

Error: numMathOps(0) #44

yudataguy opened this issue Oct 28, 2024 · 2 comments

Comments

@yudataguy
Copy link
Contributor

I got build error from this line, after I change it to numMathOps = 0; the build is successful. Could the tutorial code be wrong?

error:

fprime/MathProject/Components/MathReceiver/MathReceiver.cpp:20:17: error: called object type 'U32' (aka 'unsigned int') is not a function or function pointer
   20 |       numMathOps(0);
      |       ~~~~~~~~~~^
@kevin-f-ortega
Copy link
Contributor

Hmm, that looks odd to me. I'll need to take a closer look at this.

@AlesKus
Copy link
Contributor

AlesKus commented Dec 10, 2024

There should be no semicolon (;) in this line:
numMathOps(0);
This is a "member initializer list" of the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants