Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DEAGS3000 opened this issue Mar 20, 2018 · 1 comment
Open

Comments

@DEAGS3000
Copy link

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
Copy link
Owner

fallahn commented Mar 20, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants