Skip to content

expected unqualified-id before numeric constant #33

@negativ72rus

Description

@negativ72rus

Hey!
VS Code swears at the library when compiling a project:

lib\CountUpDownTimer/CountUpDownTimer.h: In member function 'void CountUpDownTimer::SetTimer(long unsigned int, long unsigned int, long unsigned int, long unsigned int)':
lib\CountUpDownTimer/CountUpDownTimer.h:116:16: error: expected unqualified-id before numeric constant
unsigned int _S = (seconds / 60), _M = (minutes / 60);
^
In file included from src\main.cpp:7:0:
lib\CountUpDownTimer/CountUpDownTimer.h:118:6: error: '_M' was not declared in this scope
if(_M > 0) hours += _M;

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