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
i tried to compile my project using imgui and implot , turn out the tm* ImPlot::GetGmtTime(const ImPlotTime&, tm*) and tm* ImPlot::GetLocTime(const ImPlotTime&, tm*) i got this error @ocornut ,@epezent :
`txt
C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:898:19: error: cannot convert 'const time_t*' {aka 'const long long int*'} to 'tm*' 898 | return gmtime_s(&t.S,ptm); | ^~~~ | | | const time_t* {aka const long long int*} In file included from C:/mingw64/include/c++/14.2.0/ctime:42, from C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot_internal.h:2, from C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:126: C:/mingw64/x86_64-w64-mingw32/include/time.h:260:39: note: initializing argument 1 of 'errno_t gmtime_s(tm*, const time_t*)' 260 | errno_t __CRTDECL gmtime_s(struct tm _Tm, const time_t _Time) __MINGW_ASM_CALL(_gmtime64_s); | ~~~~~~~~~~~^~~ C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp: In function 'tm ImPlot::GetLocTime(const ImPlotTime&, tm)': C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:917:24: error: cannot convert 'const time_t*' {aka 'const long long int*'} to 'tm*' 917 | return localtime_s(&t.S,ptm); | ^~~~ | | | const time_t* {aka const long long int*} C:/mingw64/x86_64-w64-mingw32/include/time.h:258:42: note: initializing argument 1 of 'errno_t localtime_s(tm*, const time_t*)' 258 | errno_t __CRTDECL localtime_s(struct tm *_Tm,const time_t *_Time) __MINGW_ASM_CALL(_localtime64_s); | ~~~~~~~~~~~^~~
`
The text was updated successfully, but these errors were encountered:
i tried to compile my project using imgui and implot , turn out the
tm* ImPlot::GetGmtTime(const ImPlotTime&, tm*)
andtm* ImPlot::GetLocTime(const ImPlotTime&, tm*)
i got this error @ocornut ,@epezent :`txt
C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:898:19: error: cannot convert 'const time_t*' {aka 'const long long int*'} to 'tm*' 898 | return gmtime_s(&t.S,ptm); | ^~~~ | | | const time_t* {aka const long long int*} In file included from C:/mingw64/include/c++/14.2.0/ctime:42, from C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot_internal.h:2, from C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:126: C:/mingw64/x86_64-w64-mingw32/include/time.h:260:39: note: initializing argument 1 of 'errno_t gmtime_s(tm*, const time_t*)' 260 | errno_t __CRTDECL gmtime_s(struct tm _Tm, const time_t _Time) __MINGW_ASM_CALL(_gmtime64_s); | ~~~~~~~~~~~^~~ C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp: In function 'tm ImPlot::GetLocTime(const ImPlotTime&, tm)': C:\Users\DELL\Documents\BachData\sharefolder\Scheduler\src\imgui\implot.cpp:917:24: error: cannot convert 'const time_t*' {aka 'const long long int*'} to 'tm*' 917 | return localtime_s(&t.S,ptm); | ^~~~ | | | const time_t* {aka const long long int*} C:/mingw64/x86_64-w64-mingw32/include/time.h:258:42: note: initializing argument 1 of 'errno_t localtime_s(tm*, const time_t*)' 258 | errno_t __CRTDECL localtime_s(struct tm *_Tm,const time_t *_Time) __MINGW_ASM_CALL(_localtime64_s); | ~~~~~~~~~~~^~~
`
The text was updated successfully, but these errors were encountered: