1
Graphics / Re: Linking error (LNK 2019) with sf::Sprite
« on: November 03, 2018, 04:09:53 am »
I've also tried that. It didn't work.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Severity Code Description Project File Line Suppression State
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 Boss2::Undead::Undead(class Boss2::Undead &&)" (??0Undead@Boss2@@QAE@$$QAV01@@Z) Somber C:\Users\\Documents\Visual Studio 2017\TEAM\Somber\Boss2.obj 1
Severity Code Description Project File Line Suppression State
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 Boss2::Undead & thiscall Boss2::Undead::operator=(class Boss2::Undead &&)" (??4Undead@Boss2@@QAEAAV01@$$QAV01@@Z) Somber C:\Users\\Documents\Visual Studio 2017\TEAM\Somber\Boss2.obj 1
Undead(sf::Texture *texture1, sf::Texture *texture2, sf::Texture *texture3);
It has an sf::Sprite member. This sets one of the 3 textures to the sprite member based on some internal calculations.std::vector <Undead> zombies;
zombies.push_back(Undead(&undeadTexture1, &undeadTexture2, &undeadTexture3));