File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33## How to build
44
55### Linux
6+
67> gcc snake.c -lpthread
78
89### windows
910
10- > 1 . ` snake_windows.c ` file is the code using windowsapis and can be built directly
11+ 1 . ` snake_windows.c ` file is the code using windowsapis and can be built directly
12+
13+ 2 . ` snake.c ` please use [ POSIX Threads for Windows] ( https://sourceforge.net/projects/pthreads4w/ )
1114
12- > 2 . ` snake.c ` please use [ POSIX Threads for Windows] ( https://sourceforge.net/projects/pthreads4w/ )
13- >> please use ** MSVS or GNU GCC (e.g. MinGW or MinGW64(without win32pthreads)) supported** for pthreads4w support
15+ > please use ** MSVS or GNU GCC (e.g. MinGW or MinGW64(without win32pthreads)) supported** for pthreads4w support<br >
16+ > gcc snake.c -I` ${The Dir of pthreads4w} ` <br >
17+ > replace ` ${The Dir of pthreads4w} ` according to your own setting
1418
15- >> gcc snake.c -I` ${The Dir of pthreads4w} ` <br >
16- replace ` ${The Dir of pthreads4w} ` according to your own setting
19+ 3 . ` snake_windows_opt.c ` is the version avoiding refresh all output frequently, which lead to splash screen
You can’t perform that action at this time.
0 commit comments