c++ - SOIL OpenGL LNK2019 error -
working opengl using soil texture binding library. whenever try , load texture, these errors:
1>libsoil.a(stb_image_aug.o) : error lnk2019: unresolved external symbol ___chkstk_ms referenced in function _stbi_jpeg_load_from_file 1>libsoil.a(image_helper.o) : error lnk2019: unresolved external symbol _sqrtf referenced in function _rgbe_to_rgbdiva2 1>c:\users\student\dropbox\work\year 2\graphics 1\coursework\graphicscoursework\debug\graphicscoursework.exe : fatal error lnk1120: 2 unresolved externals
the code use load these textures such:
int platform::loadtexture(){ gluint tex_plat = soil_load_ogl_texture( "platform.png", soil_load_auto, soil_create_new_id, soil_flag_mipmaps | soil_flag_invert_y | soil_flag_ntsc_safe_rgb | soil_flag_compress_to_dxt ); if( tex_plat > 0 ) { glenable( gl_texture_2d ); glbindtexture( gl_texture_2d, tex_plat ); return tex_plat; } else{ return 0; } }
any idea these errors mean?
Comments
Post a Comment