-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows SDL setup.txt
35 lines (24 loc) · 1.01 KB
/
windows SDL setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Use the follwoing linker settings:
-lmingw32 -lSDL2main -lSDL2 -lwinmm
Search Directories:
Compiler
C:\Users\USERNAME\Programs\SDL\SDL2-2.0.3\i686-w64-mingw32\include\
C:\Users\USERNAME\Programs\SDL\SDL2_ttf-2.0.12\i686-w64-mingw32\include\
C:\Users\USERNAME\Programs\SDL\SDL2_image-2.0.0\i686-w64-mingw32\include\
Linker
C:\Users\USERNAME\Programs\SDL\SDL2-2.0.3\i686-w64-mingw32\lib
C:\Users\USERNAME\Programs\SDL\SDL2_ttf-2.0.12\i686-w64-mingw32\lib
C:\Users\USERNAME\Programs\SDL\SDL2_image-2.0.0\i686-w64-mingw32\lib
Make sure you have the "i686-w64-mingw32" folders selected for 32-bit compilation.
The "x86_64-w64-mingw32" folders are for 64-bit compilation
Test Program:
#include <SDL.h>
#include <stdio.h>
int main(int argc, char *argv[]){
return 0;
}
You should be able to compile this.
This will allow you to ensure your linker/compiler settings are correct and that everything is where it should be.
for more detailed information, visit http://lazyfoo.net/tutorials/SDL/index.php
Cheers,
Jensen