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
Trying to compile the plugins with MSVC-2019, I got this (for me) weird error in plugins/gvar_extended/main.cpp:
f:\gv\VC_2019\VC\Tools\MSVC\14.29.30133\include\vadefs.h(194): error C2338: va_start argument must not have
reference type and must not be parenthesized
F:\gv\dx-radio\Satellite\SatDump\src-core\CImg.h(48553): note: see reference to classtemplate instantiation
'__vcrt_assert_va_start_is_not_reference<const cimg_library::CImgList<unsigned char> &>' being compiled
plugins/gvar_extended/main.cpp(132): note: see reference to function template instantiation
'cimg_library::CImg<unsigned char> &cimg_library::CImg<unsigned char>::draw_text<unsigned char,unsigned char>(const int,const int,const char *const,const tc *const ,const int,const float,const cimg_library::CImgList<unsigned char> &,...)'
being compiled
with
[
tc=unsignedchar
]
plugins/gvar_extended/main.cpp(132): note: see reference to function template instantiation
'cimg_library::CImg<unsigned char> &cimg_library::CImg<unsigned char>::draw_text<unsigned char,unsigned char>(const int,const int,const char *const, const tc *const ,const int,const float,const cimg_library::CImgList<unsigned char> &,...)'
being compiled with
[
tc=unsignedchar
]
(slightly edited).
Some issue in src-core/CImg.h at line 48553 that MSVC-2019 does not like:
First of all, the code in this plugin is considered very WIP (and you may notice it really is not very clean as of now), though about this specific bug, it's something I would personally blame on CImg, and report the issue there instead.
MSVC will complain about a similar issue in src-core/common/map/map_drawer.cpp
Trying to compile the plugins with MSVC-2019, I got this (for me) weird error in
plugins/gvar_extended/main.cpp
:(slightly edited).
Some issue in
src-core/CImg.h
at line 48553 that MSVC-2019 does not like:Compiling the same file with
clang-cl
works fine.I had to add
-D_CRT_NO_VA_START_VALIDATION
to avoid this error.The text was updated successfully, but these errors were encountered: