Pre-built and working Simple OpenGL Image Library (SOIL) compatible with C++11. Compatible with Visual Studio 2015.
Add the "libs" and "include" folders to your project.
In Visual Studio (2010-2015) you also need to do the following:
-
Project -> Properties -> VC++ Directories
-> Addinclude
to "Include Directories". -
Project -> Properties -> VC++ Directories
-> Addlibs
to "Library Directories".
Alternatively:
-
Project -> Properties -> C/C++
-> Addinclude
to "Additional Include Directories". -
Project -> Properties -> Linker
-> Addlibs
to "Additional Library Directories".
Include SOIL (#include <SOIL\SOIL.h>
) whenever you need to use SOIL.
This SOIL library correctly removes and solves the following (official SOIL lib) errors:
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libSOIL.lib(stb_image_aug.o) : error LNK2019: unresolved external symbol __alloca referenced in function _stbi_zlib_decode_noheader_buffer
1>libSOIL.lib(image_helper.o) : error LNK2019: unresolved external symbol _sqrtf referenced in function _RGBE_to_RGBdivA2
1>SOIL.lib(stb_image_aug.o) : error LNK2019: unresolved external symbol __alloca referenced in function _stbi_zlib_decode_noheader_buffer
1>SOIL.lib(image_helper.o) : error LNK2019: unresolved external symbol _sqrtf referenced in function _RGBE_to_RGBdivA2