Jump to content
  • Advertisement


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


link error...unresolved blah blah

This topic is 5841 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
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

   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
[Triple Buffer] - Resource leak imminent. Memory status: Fragile

Share this post

Link to post
Share on other sites
is the cpp file included in your project?

on a side note c++ has a built in boolean type 'bool'

[edited by - petewood on November 18, 2002 11:01:21 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!