-
-
Notifications
You must be signed in to change notification settings - Fork 445
abs() not recognized as function if not after equals sign #902
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
Comments
Hello @blopa1961. Thanks for your report. We will need some additional information in order to effectively investigate this problem.
Please provide more detailed instructions. I can guess about what you mean, but I might have guessed wrong, and that wrong guess might be the reason I can't reproduce the bug you are experiencing. I can see that this is a board from a 3rd party boards platform, but which specific boards platform? Which version of that boards platform are you using? Did you install it via Boards Manager, or did you install it to the sketchbook folder? What is the exact name of the board as shown under the Tools > Board menu in the Arduino IDE (e.g., "NodeMCU 1.0 (ESP-12E Module)")?
Please provide a complete minimal sketch we can use to reproduce the problem. Provide one sketch for the |
Hello @per1234 and thank you for your fast reply. About the 3rd party board, it's a standard nodeMCU. I tried to create a new sketch with the abs() or sprintf() problems but guess what, I can't reproduce the problem in a small sketch... In the sketch I am working on now (which is more than 2000 lines long) it still happens, I attached a couple of screen captures where you can see the problems I reported. BTW my computer is a Core i7 with 32Gb RAM and a Samsung 850 Pro SSD disk, so I don't think this is a resource issue... Regards, blopa1961 |
Hello @ubidefeo I hope you can reproduce the problem this time. |
Describe the bug
In arduino IDE
abs()
get marked as "no matching function for call to 'abs'" if it does not follow an equals sign.(the program compiles without errors)
To Reproduce
Steps to reproduce the behavior:
in a new sketch select nodeMCU 1.0
write a statement like:
if (abs(i) < j) { etc... }
abs (i)
gets flagged as error in the IDE: "no matching function call for 'abs'"k= abs(i); // this does not get flagged
same problem occurs if
sprintf
is not assigned to a variable, example:instead of
Expected behavior
I didn't expect this to be flagged
Desktop
The text was updated successfully, but these errors were encountered: