1

SOIL テクスチャ バインディング ライブラリを使用して OpenGL を操作します。ただし、テクスチャを読み込もうとすると、次のエラーが発生します。

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

これらのテクスチャをロードするために使用するコードは次のとおりです。

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;
    }
}

これらのエラーの意味について何か考えはありますか?

4

0 に答える 0