Jump to content
  • Advertisement
Sign in to follow this  
stodge

CodeBlocks compiler error - namespace clash perhaps?

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

I'm getting the following error when compiling my library in CodeBlocks on Windows: <source>error class Habitat::Utils::Timestamp has no member GetTickCount.</source> The compiler is complaining about this code: <source>mTimestamp.GetCurrentTime();</source> So I don't know why it's giving me this error - of course it doesn't have a member GetTickCount as I didn't put one in! I presume it's confusing my Timestamp class with another one it's compiling in, but I don't know why. I've put it into the Habitat::Utils namespace to avoid conflicts, but it still won't compile. Any thoughts? Thanks

Share this post


Link to post
Share on other sites
Advertisement
You may have an unknown header #define somewhere that might rename GetCurrentTime in terms of some function GetTickCount

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!