Jump to content
  • Advertisement
Sign in to follow this  
Ainokea

dev C++ doesnt like cmath

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

Whenever I include cmath I get errors saying things like: acosf not declared and `powf' not declared Whats could be the problem? The joys of porting my code base from VS 6.0 to dev c++. [Edited by - Ainokea on October 3, 2004 8:37:09 PM]

Share this post


Link to post
Share on other sites
Advertisement
Wow...we seem to have quite a lot of the same stuff going on. We should team up. Anyway, I got rid of my errors by removing Visual Studio directories from the include/lib paths. They use seperate compilers (right?), so I guess they don't like using each other's files. Anyway, I had to copy my SDL files into Dev's directories for everything to work all squeaky squishy.

EDIT: Oh, and are you getting a "depreciated file" warning? It sounds like you should be. Try using <cmath> and namespace std if you aren't using Visual Studio's directories.

EDIT AGAIN: I gotta stop saying anyway so much.

Share this post


Link to post
Share on other sites
oops sorry bad forum title. I meant to say I include it like this:
#include <cmath>

I just said cmath.h to show I was talking about a header file. My bad.

Share this post


Link to post
Share on other sites
all cmath functions are in namespace std, at least for gcc, and tey should be for vc also.

(using namespace std; btw)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!