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

my_tz.cpp:11:8: error: 'ace_time::BasicZoneManager' is not a template #38

Open
yonggithub opened this issue Apr 1, 2022 · 2 comments
Open

Comments

@yonggithub
Copy link

yonggithub commented Apr 1, 2022

My device is T-watch-2020 v2.
Unable to compile this project, and prompt an error: my_tz.cpp:11:8: error: 'ace_time::BasicZoneManager' is not a template.

 static BasicZoneManager<CACHE_SIZE> manager(
        ^
my_tz.cpp:12:53: error: no matching function for call to 'ace_time::BasicZoneManager::BasicZoneManager(const uint16_t&, const ace_time::basic::ZoneInfo* const [258])'
     zonedb::kZoneRegistrySize, zonedb::kZoneRegistry);
                                                     ^
In file included from C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/AceTime.h:53:0,
                 from C:\Users\81274664\Documents\Arduino\DudleyWatch\my_tz.cpp:3:
C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/ace_time/ZoneManager.h:224:5: note: candidate: ace_time::BasicZoneManager::BasicZoneManager(uint16_t, const ace_time::basic::ZoneInfo* const*, ace_time::BasicZoneProcessorCacheBase&)
     BasicZoneManager(
     ^
C:\Users\81274664\Documents\Arduino\libraries\AceTime\src/ace_time/ZoneManager.h:224:5: note:   candidate expects 3 arguments, 2 provided
C:\Users\81274664\Documents\Arduino\DudleyWatch\play_sound.cpp: In function 'void beep(int8_t)':
play_sound.cpp:64:20: error: 'TWATCH_DAC_IIS_BCK' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                    ^
play_sound.cpp:64:40: error: 'TWATCH_DAC_IIS_WS' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                                        ^
play_sound.cpp:64:59: error: 'TWATCH_DAC_IIS_DOUT' was not declared in this scope
     out->SetPinout(TWATCH_DAC_IIS_BCK, TWATCH_DAC_IIS_WS, TWATCH_DAC_IIS_DOUT);
                                                           ^
exit status 1
'ace_time::BasicZoneManager' is not a template

Do any process I miss to do?

image

below is my config.h
image

@wfdudley
Copy link
Owner

wfdudley commented Apr 1, 2022 via email

@czesioG
Copy link

czesioG commented Apr 18, 2022

Hi,
simply change acetime library to 1.8.2. For all above the code needs to be rewritten - https://github.com/bxparks/AceTime/blob/develop/MIGRATING.md#MigratingToVersion190
BTW I use 2020 v3 and the code works (at least it was compiled ok and uploded)

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

3 participants