Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include <cmath> #11

Open
GoogleCodeExporter opened this issue May 25, 2015 · 1 comment
Open

include <cmath> #11

GoogleCodeExporter opened this issue May 25, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
I'm using ffmpeg and marble opensource lib

What is the expected output? What do you see instead?
the compilation failled:
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
05: error: '::acos' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
21: error: '::asin' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
37: error: '::atan' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
53: error: '::atan2' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
75: error: '::ceil' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
91: error: '::cos' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
07: error: '::cosh' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
23: error: '::exp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
39: error: '::fabs' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
55: error: '::floor' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
71: error: '::fmod' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
81: error: '::frexp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
97: error: '::ldexp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
13: error: '::log' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
29: error: '::log10' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
45: error: '::modf' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
55: error: '::pow' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
93: error: '::sin' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
09: error: '::sinh' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
25: error: '::sqrt' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
41: error: '::tan' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
57: error: '::tanh' has not been declared

What version of the product are you using? On what operating system?
version 23 09 2011
os win7

Please provide any additional information below.
I solved the problem by adding 
#include <cmath> in ffmpeg.h:

  #ifndef _FFMPEG_H
  #define _FFMPEG_H

  #include <cmath>

  namespace ffmpeg {
  ...



Original issue reported on code.google.com by [email protected] on 30 Nov 2011 at 8:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant