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

expected unqualified-id before numeric constant #33

Open
negativ72rus opened this issue Sep 9, 2021 · 2 comments
Open

expected unqualified-id before numeric constant #33

negativ72rus opened this issue Sep 9, 2021 · 2 comments

Comments

@negativ72rus
Copy link

negativ72rus commented Sep 9, 2021

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;

@AndrewMascolo
Copy link
Owner

AndrewMascolo commented Sep 9, 2021 via email

@AndrewMascolo
Copy link
Owner

Please pull it again, if you are still getting this error, then I will just make it int instead of unsigned int.
You may also change the library if you so wish on your end.

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

2 participants