Pelles C forum

C language => Beginner questions => Topic started by: iemmaluigi on February 13, 2017, 09:32:39 AM

Title: Help stb image library
Post by: iemmaluigi on February 13, 2017, 09:32:39 AM
Hi,
I get these errors compiling the library stb

C:\Programmi\PellesC8\Progetti\stb\stb_image.h(715): warning #2117: Old-style function definition for 'stbi__sse2_available'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2297): warning #2018: Undeclared function '_mm_setr_epi16' (did you mean '_mm_setcsr'?); assuming 'extern' returning 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2377): error #2168: Operands of '=' have incompatible types '__m128i' and 'int'.
.....
.....
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2387): warning #2018: Undeclared function '_mm_set1_epi32' (did you mean '_mm_setr_epi16'?); assuming 'extern' returning 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2387): error #2168: Operands of '=' have incompatible types '__m128i' and 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2388): error #2168: Operands of '=' have incompatible types '__m128i' and 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2391): warning #2018: Undeclared function '_mm_load_si128' (did you mean '_mm_set1_epi32'?); assuming 'extern' returning 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2391): error #2168: Operands of '=' have incompatible types '__m128i' and 'int'.
C:\Programmi\PellesC8\Progetti\stb\stb_image.h(2392): error #2168: Operands of '=' have incompatible types '__m128i' and 'int'.
.....
.....
Thanks in advance!