Note: These classes are within a dll
I am trying to implement a method within my map class a method which
receives a pointer for a renderTexture then adds the background for the map and the objects
//returns the composite image of the background with all of the objects added on to it
void Map::getImage(RenderTexture *image)
{
//sets the width and height of the renderTexture, to the width and height of the background sprite
if (!image->create(background.getTextureRect().width, background.getTextureRect().height))
{
}
image->clear();
//adds the background to the renderTexture
image->draw(background);
for (int x = 0;x < objects.size();x++)
{
//adds the sprite of the object to the rendertexture
image->draw(objects.at(x)->getImage());
}
image->display();
}
Error :LNK2001 unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
The pointer will come from the main loop and it will then be added to the renderwindow
What could be the cause of the error?