SOIL is meant to be used as a static library (as it’s tiny and in the public domain). You can use the static library file included in the zip (libSOIL.a works for MinGW and Microsoft compilers[FLAG]… feel free to rename it to SOIL.lib if that makes you happy), or compile the library yourself.
Visual C++ 2008 Express
libSOIL.a当然不兼容VC。(未测试,也不知道怎么测试)
打开VC9工程文件,按生成。VC会吐一堆警告,然后丢出一个SOIL.lib。完成。
MinGW
libSOIL.a和MinGW现在不兼容,编译会出错。毕竟是近十年的老库了。
Makefile和“再来一个”Makefile.txt似乎都是坏的。
但是可以徒手编译!
cd /d Y:\SOIL\src for %i in (*.c) do gcc -c %i -o %i.o ar -r SOIL.a *.o && del *.o
得到一个SOIL.a,完成。