Original Post
Hello..... I'm new to this forum (just to let you know)....
Anyway, I recently downloaded the SOIL library for loading textures in OpenGL. For some reason, whenever I try to compile I get this error message:
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
1>programname.exe : fatal error LNK1120: 2 unresolved externals
Here is the code I'm using to load the texture (if it helps)
Hopefully someone knows enough to help me fix this!!!
(btw, I am using VC++ compiler)
Anyway, I recently downloaded the SOIL library for loading textures in OpenGL. For some reason, whenever I try to compile I get this error message:
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
1>programname.exe : fatal error LNK1120: 2 unresolved externals
Here is the code I'm using to load the texture (if it helps)
GLuint textureId= SOIL_load_OGL_texture("filename",SOIL_LOAD_RGB,SOIL_CREATE_NEW_ID,SOIL_FLAG_MIPMAPS);Hopefully someone knows enough to help me fix this!!!
(btw, I am using VC++ compiler)