Sign in to follow this  
Ainokea

dev C++ doesnt like cmath

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this