Skip to content

Compilation Problems #4

@Oye-Hamzay56

Description

@Oye-Hamzay56

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions