FLIF-hub / FLIF

Free Lossless Image Format
Other
3.72k stars 229 forks source link

Just including flif-enc.hpp results in error c2440 from VS compiler. #543

Open tnikolla opened 5 years ago

tnikolla commented 5 years ago

System Info

Windows 10 VS Proffesional 2017 -v15.7.1

Test program

#include <flif-enc.hpp>

#pragma comment(lib,"libflif.lib")

int main() { 

    return 0;

}

Compiler error

pathname\image.hpp: error c2440: : cannot convert from "__m128i" to "FourColorVals"

The error is in image.hpp line 90: FourColorVals VCALL operator+(FourColorVals b) { return FourColorVals(_mm_add_epi32(vec,b.vec)); }