So...I wrote my own animator class, so far so good but when I write something for the class into my *.cpp file I get this Debug-Message:
I don't have any idea what I should do...obj\Debug\Engine_Particle.o||In function `_ZN3irr4core12irrAllocatorIcE15internal_deleteEPv':|
\include\IAttributeExchangingObject.h:(.text+0x7b)||undefined reference to `vtable for CSceneNodeEmitterStop'|
\Engine_Particle.o||In function `_ZN21CSceneNodeEmitterStopC1EPN3irr5scene24IParticleSystemSceneNodeEi':|
\Engine_Particle.cpp|4|undefined reference to `VTT for CSceneNodeEmitterStop'|
\Engine_Particle.cpp|4|undefined reference to `vtable for CSceneNodeEmitterStop'|
\Engine_Particle.cpp|4|undefined reference to `vtable for CSceneNodeEmitterStop'|
\Engine_Particle.cpp|4|undefined reference to `vtable for CSceneNodeEmitterStop'|
||=== Build finished: 5 errors, 0 warnings ===|
And here is the Sourcecode of my Animator-class
Header Filei:
Code: Select all
#ifndef ENGINE_PARTICLE_H_INCLUDED
#define ENGINE_PARTICLE_H_INCLUDED
#include <irrlicht.h>
#include "Engine_Globals.h"
using namespace irr;
class CSceneNodeEmitterStop : public ISceneNodeAnimator
{
public:
//! constructor
CSceneNodeEmitterStop(int ms);
//! destructor
//virtual ~CSceneNodeEmitterStop();
//! animates a scene node
virtual void animateNode(ISceneNode* node, u32 timeMs);
//! Writes attributes of the scene node animator.
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
//! Reads attributes of the scene node animator.
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
//! Returns type of the scene node animator
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_UNKNOWN; }
//! Creates a clone of this animator.
/** Please note that you will have to drop
(IReferenceCounted::drop()) the returned pointer after calling
this. */
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
private:
int ms;
};
#endif // ENGINE_PARTICLE_H_INCLUDED
Code: Select all
#include "Engine_Particle.h"
CSceneNodeEmitterStop::CSceneNodeEmitterStop(int ms)
{
}
Without this lines in the CPP File the program starts correctly, but with this lines I get this damn Error which I wrote at the top of my super-sweet-english-skilled post
I hope you can help me, thx.