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

Bug on windows 10 (GCC 14.2) #588

Open
mohamedelbachir opened this issue Aug 29, 2024 · 0 comments
Open

Bug on windows 10 (GCC 14.2) #588

mohamedelbachir opened this issue Aug 29, 2024 · 0 comments

Comments

@mohamedelbachir
Copy link

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); | ~~~~~~~~~~~^~~

`

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

1 participant