You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i'm trying to compile the detect example for the above library, arduino IDE gives out the following errors:
`
In file included from C:\Users\hamza\OneDrive\Documents\ArduinoData\packages\arduino\hardware\sam\1.6.12\cores\arduino/WCharacter.h:23:0,
from C:\Users\hamza\OneDrive\Documents\ArduinoData\packages\arduino\hardware\sam\1.6.12\cores\arduino/Arduino.h:191,
from C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:19:
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:26:5: error: expected unqualified-id before numeric constant
int _N;
^
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp: In constructor 'Goertzel::Goertzel(float, float, float)':
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:48:8: error: lvalue required as left operand of assignment
_N=MAXN;
^
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:50:7: error: lvalue required as left operand of assignment
_N=N;
`
Any solution for such errors?
The text was updated successfully, but these errors were encountered:
I know this is an old comment by now, but the issue is that in some cases the _N macro is already defined (e.g., I'm using this on a Teensy 4.0, and _N is a bad choice). By renaming _N to _NSZ, I'm able to get the code to compile.
When i'm trying to compile the detect example for the above library, arduino IDE gives out the following errors:
`
In file included from C:\Users\hamza\OneDrive\Documents\ArduinoData\packages\arduino\hardware\sam\1.6.12\cores\arduino/WCharacter.h:23:0,
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:26:5: error: expected unqualified-id before numeric constant
int _N;
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp: In constructor 'Goertzel::Goertzel(float, float, float)':
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:48:8: error: lvalue required as left operand of assignment
C:\Users\hamza\OneDrive\Documents\Arduino\libraries\Goertzel_master\Goertzel.cpp:50:7: error: lvalue required as left operand of assignment
`
Any solution for such errors?
The text was updated successfully, but these errors were encountered: