c++ - SDL installation failure on windows with MinGW - dvec.h error -



c++ - SDL installation failure on windows with MinGW - dvec.h error -

i trying set sdl on windows , struggling.

i trying follow lazyfoo's tutorial on fresh install of windows 8 32bit.

i install mingw via link mingw-get-setup.exe here: http://sourceforge.net/projects/mingw/files/, , install , update basic packages. i download developer libraries sdl2-2.0.0 (in order follow tutorial exactly, because current w.0.3 didn't work neither.) , extract main folder c:/, within includes folders named i686-w64-mingw32 , x86_64-w64-mingw32 (what difference between these exactly?), 2 other folders called 'include' , 'lib' (what difference between these lib&include folders ones within i686-w64-mingw32 , x86_64-w64-mingw32 folders?) i re-create source code file or create own simple test file includes main() 'return 0;' , '#include "sdl2/sdl.h" then run cmd line tutorial, below, , next failed result:

c:\01_hello_sdl>g++ 01_hello_sdl.cpp -ic:\mingw_dev_lib\include\sdl2 -lc:\mingw_dev_lib\lib -w-wl,-subsystem,windows -lmingw32 -lsdl2main -lsdl2 -o 01_hello_sdl in file included c:\mingw\i686-w64-mingw32\include\intrin.h:151:0, c:\mingw_dev_lib\include\sdl2/sdl_cpuinfo.h:44, c:\mingw_dev_lib\include\sdl2/sdl.h:71, 01_hello_sdl.cpp:5: c:\mingw\i686-w64-mingw32\include\dvec.h: in function 'const __m128i get_mask128()':c:\mingw\i686-w64-mingw32\include\dvec.h:56:83: error: '_mm_set1_epi64' notdeclared in scope static const __m128i mask128 = _mm_set1_epi64(m64((__int64)0xffffffffffffffffll));

this them followed ton of errors , ctrl-c.

any advice appreciated. thanks!

-dan

dvec.h in mingw-w64 broken - need edit , replace

#ifdef __sse__

with

#ifdef __sse2__

c++ windows mingw sdl-2

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -