Archived

This topic is now archived and is closed to further replies.

link error...unresolved blah blah

This topic is 5504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I keep on getting this link error
quote:
error LNK2001: unresolved external symbol "public: int __thiscall CParticle::Update(float)" (?Update@CParticle@@QAEHM@Z)
The strange thing is that I only get it when I put the Definition in it''s own .CPP file. If I leave the definition in the header file itself....nothing goes wrong!! why is this happening?
  
//My header file

class CParticle
{
   //...Stuff

   BOOL Update(float fTime);
   //...More stuff

};

//My cpp file

#include "particle.h"
BOOL CParticle::Update(float fTime)
{
   // Do stuff

}
  
I dont get it. this is the first time Im getting an error like this. thanks for any help
:::Al:::
[Triple Buffer] - Resource leak imminent. Memory status: Fragile

Share this post


Link to post
Share on other sites