labyrinth
labyrinth

Reputation: 1164

Fixing compilation error in Visual C++

I am very very new to VC++ and not so comfortable in C++ too. I am trying get a project running but unable to fix these errors: error C3861: 'fmod': identifier not found This project was running pretty fine but some problem with configuration causing this. Any idea why this could be? Very sorry for a very basic question!

Upvotes: 0

Views: 122

Answers (3)

πάντα ῥεῖ
πάντα ῥεῖ

Reputation: 1

We can't tell you much about this, without you give some more context (the code where this error appears).

Most probably you've been missing to

 #include <cmath>

or to apply std:: namespace for std::fmod().

Upvotes: 1

Paul
Paul

Reputation: 21975

As per the documentation, you could also do (apart from what Aleksandar said):

#include <ctgmath>

See also: http://www.cplusplus.com/reference/ctgmath/

Upvotes: 0

user4233758
user4233758

Reputation:

This looks like a problem with cmath.

Try to include cmath

#include <cmath>

Upvotes: 2

Related Questions