You need to follow instructions in this quote:
[quote=âRobik, post:6, topic:7240â]To make SDL to compile on Windows 7 x64 with Code::Blocks I did following steps:
- I used Release - SDL configuration - all changes in Project Build Options should be done for specific configuration, not for entire project!
- added missing SDLTILES into Project Build Options->Compiler settings->#defines (other tiles configurations had it already)
- created WinDepend directory in project root (it is defined in .gitignore already)
- copied these files:
[ul][li]content of SDL2-devel-2.0.3-VC.zip\SDL2-2.0.3\lib\x86 into WinDepend[/li]
[li]content of SDL2-devel-2.0.3-VC.zip\SDL2-2.0.3\include into WinDepend\SDL2[/li]
[li]content of SDL2_ttf-devel-2.0.12-VC.zip\SDL2_ttf-2.0.12\lib\x86 into WinDepend[/li]
[li]content of SDL2_ttf-devel-2.0.12-VC.zip\SDL2_ttf-2.0.12\include into WinDepend\SDL2[/li]
[li]content of SDL2_image-devel-2.0.0-VC.zip\SDL2_image-2.0.0\lib\x86 into WinDepend[/li]
[li]content of SDL2_image-devel-2.0.0-VC.zip\SDL2_image-2.0.0\include into WinDepend\SDL2[/li][/ul]
- replaced paths in Project Build Options->Search directories with path WinDepend
- replaced paths in Project Build Options->Linker settings with these:
[ul][li]WinDepend\SDL2.lib[/li]
[li]WinDepend\SDL2_image.lib[/li]
[li]WinDepend\SDL2_ttf.lib[/li]
[li]WinDepend\SDL2main.lib[/li][/ul]
- last missing piece for successful compilation was
Second step, go into the directory you downloaded the git of catadda to, go into the src directory and edit sdltiles.cpp
On line 32 (after #include ), you need to insert a new line and add #include
, then, two lines down from that, change "#define strcasecmp strcmpi" to #define strcasecmp StrCmpI"
So thanks for that! :)
Now, the only problem is that change to strtiles.cpp in in git hub as Uncommited changeâŚ[/quote]
Iâm gonna break it down for a âreal noobâ level 
Before you start you need to checkout the code from the repository, for instance using GitHubâs handy app, or maybe by just downloading it from the site here: https://github.com/CleverRaven/Cataclysm-DDA (big friendly âdownload ZIPâ button)
Youâre also going to need Code::Blocks, obviously. Get it here: http://www.codeblocks.org/downloads/26 , make sure to get the version with the included mingw compiler.
Open the project file in the directory where youâve downloaded the source to.
For steps 1 and 2 of the above process, open Project->Build Options⌠from the CB menu strip. In the window, pick âRelease - SDLâ on the left side, and the âCompiler Settingsâ->"#defines" tabs on the right side. Add âSDLTILESâ, on a new line and without quotes, to the list of strings you see there.
Step 3 should probably not be explained additionally, just create a folder called âWinDependâ in the same directory as the Cataclysm project file. In preparation for step 4, also create an âSDL2â folder inside the âWinDependâ folder.
Files for step 4 are here:
SDL2-devel-2.0.3-VC.zip - https://www.libsdl.org/download-2.0.php (under Development Libraries, for 32-bit Windows)
SDL2_ttf-devel-2.0.12-VC.zip - https://www.libsdl.org/projects/SDL_ttf/ (under Development Libraries)
SDL2_image-devel-2.0.0-VC.zip - https://www.libsdl.org/projects/SDL_image/ (under Development Libraries)
From within each of those archives, any files under the \lib\x86 path are to be extracted directly into the WinDepend folder.
Any files under the \include folder must be extracted to the WinDepend\SDL2 folder.
Additionally, as I noted above, you will need a replacement SDL_platform.h file from here: https://hg.libsdl.org/SDL/raw-file/e217ed463f25/include/SDL_platform.h . Download it and put it in the WinDepend\SDL2 folder after youâre done with the others.
For step 5, open the same Project->Build Options⌠window as in step 2, and select the same âRelease - SDLâ entry on the left. On the right, select the âSearch Directoriesâ tab. It has three sub-tabs, you need to check two - âCompilerâ and âLinkerâ. Inside each, there should be only one remaining entry, and it should read simply âWinDependâ - create it, and delete all others.
For step 6, in the same window and with âRelease - SDLâ still selected on the left, select the âLinker Settingsâ tab on the right. You should see a list of several paths there. Either edit them all, or delete them after adding the new entries, but in the end there should be four entries in that list, reading âWinDepend\SDL2.libâ, âWinDepend\SDL2_image.libâ, âWinDepend\SDL2_ttf.libâ, and âWinDepend\SDL2main.libâ, all without quotes.
For step 7, youâll need to open one of the source files. With the Cataclysm project open, youâll see on the left a list showing the files in the Cataclysm project. If you donât, hit Shift+F2, or check the View->Manager option from the menu strip. The file you need is under Cataclysm\Sources\src\sdltiles.cpp . Open that file, and scroll down to lines 32-35, which should be saying
#include <windows.h>
#ifndef strcasecmp
#define strcasecmp strcmpi
(unless you checkout the code after itâs been fixed)
You need to make that section look like this instead, expanding it to four lines:
#include <windows.h>
#include <shlwapi.h>
#ifndef strcasecmp
#define strcasecmp StrCmpI
Note the capitalization on the last line. After that, you are pretty much done. Make sure you select the âRelease - SDLâ profile on the drop-down next to the compile buttons on the main screen (top center of the Code::Blocks window, right under the menu strip), otherwise all the variables youâve been setting wonât apply.
If you still have problems after doing all that, post the exact error messages youâre getting here, and weâll try to sort it out. 