fallahn / sfml-tmxloader

SFML 2.x based tmx tilemap parser for files created with Tiled tile map editor
106 stars 33 forks source link

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

Open DEAGS3000 opened 6 years ago

DEAGS3000 commented 6 years ago

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.

fallahn commented 6 years ago

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