/ / Problémy konverzie z Visual Studio 2013 na Visual Studio 2015 - c ++, Visual-studio, visual-studio-2013, visual-studio-2015

Problémy pri konverzii z Visual Studio 2013 na Visual Studio 2015 - c ++, visual-studio, visual-studio-2013, visual-studio-2015

Mám masívny program v C + +, ktorý až do tohtosom pracoval na používaní VS 2013 Express. Skúšobná verzia skončila, takže som sa rozhodol presťahovať do VS 2015 Professional. Keď sa pokúšam kompilovať a ladiť rovnaký presný kód, ktorý funguje perfektne na VS 2013, dostanem tieto chyby. Ako môžem urobiť túto prácu?

1main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RectangleShape::RectangleShape(class sf::RectangleShape &&)" (__imp_??0RectangleShape@sf@@QAE@$$QAV01@@Z) referenced in function "public: __thiscall entity::entity(class entity &&)" (??0entity@@QAE@$$QAV0@@Z)


1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::RectangleShape & __thiscall sf::RectangleShape::operator=(class sf::RectangleShape &&)" (__imp_??4RectangleShape@sf@@QAEAAV01@$$QAV01@@Z) referenced in function "public: class entity & __thiscall entity::operator=(class entity &&)" (??4entity@@QAEAAV0@$$QAV0@@Z)


1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite &&)" (__imp_??0Sprite@sf@@QAE@$$QAV01@@Z) referenced in function "public: __thiscall entity::entity(class entity &&)" (??0entity@@QAE@$$QAV0@@Z)


1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Sprite & __thiscall sf::Sprite::operator=(class sf::Sprite &&)" (__imp_??4Sprite@sf@@QAEAAV01@$$QAV01@@Z) referenced in function "public: class entity & __thiscall entity::operator=(class entity &&)" (??4entity@@QAEAAV0@$$QAV0@@Z)


1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Text::Text(class sf::Text &&)" (__imp_??0Text@sf@@QAE@$$QAV01@@Z) referenced in function "public: __thiscall entity::entity(class entity &&)" (??0entity@@QAE@$$QAV0@@Z)


1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Text & __thiscall sf::Text::operator=(class sf::Text &&)" (__imp_??4Text@sf@@QAEAAV01@$$QAV01@@Z) referenced in function "public: class entity & __thiscall entity::operator=(class entity &&)" (??4entity@@QAEAAV0@$$QAV0@@Z)


1>C:SFML-2.3.2SFMLDebugSFML.exe : fatal error LNK1120: 6 unresolved externals

odpovede:

4 pre odpoveď č. 1

Zdá sa, že SFML anotuje niektoré triedy, takže všetkoich členovia sú zaradení do knižnice DLL. VS2015 však teraz generuje konštruktory presunu a operátory presunu priradení, ktoré VS2013 neučinil, a zdá sa, že knižnica to nezvláda správne. Všetky chýbajúce symboly sú tieto nové funkcie.

Konkrétne to vyzerá, že kompilátor "tgenerovať implementácie v klientskom programe, pretože sa očakávalo, že existujú v knižnici DLL, ale nemajú "v existujúcej knižnici DLL". viesť k tejto chybe.