I can't seem to get this fix to work.
In sprite.hpp I defined the destructor (right below the constructor) public, ie:
class SFML_API Sprite : public Drawable
{
public :
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
/// Creates an empty sprite with no source texture.
///
////////////////////////////////////////////////////////////
Sprite();
~Sprite();
////////////////////////////////////////////////////////////
/// \brief Construct the sprite from a source texture
///
/// \see SetTexture
///
////////////////////////////////////////////////////////////
explicit Sprite(const Texture& texture);
In Sprite.cpp, I defined the destructor,
////////////////////////////////////////////////////////////
Sprite::Sprite(const Texture& texture) :
Drawable (),
mySubRect (0, 0, 1, 1),
myIsFlippedX(false),
myIsFlippedY(false)
{
SetTexture(texture);
}
Sprite::~Sprite()
{
}
After which I rebuilt the SFML project, copied the new DLL's to my project's BIN directory (where the dll's were previously) and rebuild (vs 2010). I still get the error,
c:\sfml 2.0\include\sfml\system\resourceptr.inl(51): error C2027: use of undefined type 'sf::Texture'
3> c:\sfml 2.0\include\sfml\graphics\renderer.hpp(42) : see declaration of 'sf::Texture'
3> c:\sfml 2.0\include\sfml\system\resourceptr.inl(47) : while compiling class template member function 'sf::ResourcePtr<T>::ResourcePtr(const sf::ResourcePtr<T> &)'
3> with
3> [
3> T=sf::Texture
3> ]
3> c:\sfml 2.0\include\sfml\graphics\sprite.hpp(208) : see reference to class template instantiation 'sf::ResourcePtr<T>' being compiled
3> with
3> [
3> T=sf::Texture
3> ]
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(51): error C2227: left of '->Connect' must point to class/struct/union/generic type
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(60): error C2027: use of undefined type 'sf::Texture'
3> c:\sfml 2.0\include\sfml\graphics\renderer.hpp(42) : see declaration of 'sf::Texture'
3> c:\sfml 2.0\include\sfml\system\resourceptr.inl(58) : while compiling class template member function 'sf::ResourcePtr<T>::~ResourcePtr(void)'
3> with
3> [
3> T=sf::Texture
3> ]
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(60): error C2227: left of '->Disconnect' must point to class/struct/union/generic type
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(69): error C2027: use of undefined type 'sf::Texture'
3> c:\sfml 2.0\include\sfml\graphics\renderer.hpp(42) : see declaration of 'sf::Texture'
3> c:\sfml 2.0\include\sfml\system\resourceptr.inl(67) : while compiling class template member function 'sf::ResourcePtr<T> &sf::ResourcePtr<T>::operator =(const sf::ResourcePtr<T> &)'
3> with
3> [
3> T=sf::Texture
3> ]
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(69): error C2227: left of '->Disconnect' must point to class/struct/union/generic type
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(74): error C2027: use of undefined type 'sf::Texture'
3> c:\sfml 2.0\include\sfml\graphics\renderer.hpp(42) : see declaration of 'sf::Texture'
3>c:\sfml 2.0\include\sfml\system\resourceptr.inl(74): error C2227: left of '->Connect' must point to class/struct/union/generic type
3> PolygonRenderer.hpp
3> main.cpp
3> GameImageManager.cpp
3> Generating Code...
3>
3>Build FAILED.
Did I miss a step, or forget something otherwise?
Thanks,
Short