[英]SDL installation failure on windows with MinGW - dvec.h error
我正在嘗試在Windows上設置SDL並正在掙扎。
我正在嘗試在全新安裝的Windows 8 32bit上遵循LazyFoo的教程 。
MinGW
: http : //sourceforge.net/projects/mingw/files/ ,然后安裝它並更新基本軟件包。 SDL2-2.0.0
的開發人員庫(為了完全按照本教程進行操作,因為當前的w.0.3都不起作用。)並將主文件夾提取到C:/,然后在其中包含名為的文件夾i686-w64-mingw32
和x86_64-w64-mingw32
(兩者之間到底有什么區別?),以及另外兩個名為“ include”和“ lib”的文件夾(這些lib&include文件夾與其中的文件夾之間到底有什么區別? i686-w64-mingw32和x86_64-w64-mingw32文件夾?) 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 from c:\\mingw\\i686-w64-mingw32\\include\\intrin.h:151:0, from C:\\mingw_dev_lib\\include\\SDL2/SDL_cpuinfo.h:44, from C:\\mingw_dev_lib\\include\\SDL2/SDL.h:71, from 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' was notdeclared in this scope static const __m128i mask128 = _mm_set1_epi64(M64((__int64)0xffffffffffffffffll));
這是它們,后面是大量錯誤和I ctrl-c。
任何意見,將不勝感激。 謝謝!
-擔
mingw-w64中的dvec.h已損壞-您需要對其進行編輯並替換
#ifdef __SSE__
與
#ifdef __SSE2__
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.