GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.49k stars 285 forks source link

Can't compile project using CImg under visual studio windows 11 anymore #380

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi

Since commit https://github.com/GreycLab/CImg/commit/64839222d7ec5312497ca017e27e0bf90af3d66a I can't compiile my project under Windows anymore. Before I had no problems.

Build Log:

CImg.h(3156,57): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,char>' has already been defined
CImg.h(3147,50): message : see previous definition of 'superset<unsigned __int64,char>'
CImg.h(3157,64): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,signed char>' has already been defined
CImg.h(3148,57): message : see previous definition of 'superset<unsigned __int64,signed char>'
CImg.h(3158,58): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,short>' has already been defined
CImg.h(3149,51): message : see previous definition of 'superset<unsigned __int64,short>'
CImg.h(3159,56): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,int>' has already been defined
CImg.h(3150,49): message : see previous definition of 'superset<unsigned __int64,int>'
CImg.h(3160,63): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,__int64>' has already been defined
CImg.h(3151,56): message : see previous definition of 'superset<unsigned __int64,__int64>'
CImg.h(3161,58): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,float>' has already been defined
CImg.h(3152,51): message : see previous definition of 'superset<unsigned __int64,float>'
CImg.h(3162,59): error C2766: explicit specialization; 'cimg_library::cimg::superset<unsigned __int64,double>' has already been defined
CImg.h(3153,52): message : see previous definition of 'superset<unsigned __int64,double>'
CImg.h(3163,49): error C2766: explicit specialization; 'cimg_library::cimg::superset<__int64,float>' has already been defined
CImg.h(3154,50): message : see previous definition of 'superset<__int64,float>'
CImg.h(3164,50): error C2766: explicit specialization; 'cimg_library::cimg::superset<__int64,double>' has already been defined
CImg.h(3155,51): message : see previous definition of 'superset<__int64,double>'

Thanks

dtschump commented 1 year ago

Thanks for reporting. Does this commit https://github.com/GreycLab/CImg/commit/722646c424ca721ffb7d3c3517048756cf0c9d46 fix the issue? Thanks for your help!

ghost commented 1 year ago

Hi,

Yes, https://github.com/GreycLab/CImg/commit/722646c424ca721ffb7d3c3517048756cf0c9d46 fixed the issue I encountered.

Thanks!

dtschump commented 1 year ago

OK. I've released a new .zip archive on the website, with these changes. Thanks again for your report!