Skip to content

Can not build tmxsfml project as I've set link options correctly #76

Open
@DEAGS3000

Description

@DEAGS3000

I can build tmxsfml-s project correctly, but not tmxsfml project. It shows:
MapObject.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>QuadTreeNode.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>tmx2box2d.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>DebugShape.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>MapLayer.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>MapLoaderPrivate.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>MapLoaderPublic.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(class sf::VertexArray &&)" (__imp_??0VertexArray@sf@@QAE@$$QAV01@@Z) 1>MapObject.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>QuadTreeNode.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>tmx2box2d.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>DebugShape.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLayer.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLoaderPrivate.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLoaderPublic.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::VertexArray & __thiscall sf::VertexArray::operator=(class sf::VertexArray &&)" (__imp_??4VertexArray@sf@@QAEAAV01@$$QAV01@@Z) 1>QuadTreeNode.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>tmx2box2d.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>MapLayer.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>MapLoaderPrivate.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>MapLoaderPublic.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>MapObject.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) 1>QuadTreeNode.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>tmx2box2d.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLayer.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLoaderPrivate.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>MapLoaderPublic.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>MapObject.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) 1>Box2D-d.lib(b2Settings.obj) : error LNK2019: 无法解析的外部符号 __imp__vprintf,该符号在函数 "void __cdecl b2Log(char const *,...)" (?b2Log@@YAXPBDZZ) 中被引用 1>D:\Pokemon Development\sfml-tmxloader\build\VS2013\Debug\Shared\tmxsfml-d.dll : fatal error LNK1120: 5 个无法解析的外部命令

but I had linked sfml libs correctly, it still reporting linking error. What's wrong? I'm using VS2015 and the default VS2013 sln.

Activity

fallahn

fallahn commented on Mar 20, 2018

@fallahn
Owner

I can't say off the top of my head - it's a long time since I updated this library. Would you perhaps be better of with the more up-to-date tmx lite? https://github.com/fallahn/tmxlite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Can not build tmxsfml project as I've set link options correctly · Issue #76 · fallahn/sfml-tmxloader