clzhan / qtffmpegwrapper

Automatically exported from code.google.com/p/qtffmpegwrapper
Other
0 stars 1 forks source link

include <cmath> #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 camus.ol...@googlemail.com on 30 Nov 2011 at 8:56

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I'm using ffmpeg and opencv 2.4.4 opensource lib

What is the expected output? What do you see instead?
the compilation failed:
/usr/include/c++/4.6/cmath:99:11: error: ‘::acos’ has not been declared
/usr/include/c++/4.6/cmath:115:11: error: ‘::asin’ has not been declared
/usr/include/c++/4.6/cmath:131:11: error: ‘::atan’ has not been declared
/usr/include/c++/4.6/cmath:147:11: error: ‘::atan2’ has not been declared
/usr/include/c++/4.6/cmath:166:11: error: ‘::ceil’ has not been declared
/usr/include/c++/4.6/cmath:182:11: error: ‘::cos’ has not been declared
/usr/include/c++/4.6/cmath:198:11: error: ‘::cosh’ has not been declared
/usr/include/c++/4.6/cmath:214:11: error: ‘::exp’ has not been declared
/usr/include/c++/4.6/cmath:230:11: error: ‘::fabs’ has not been declared
/usr/include/c++/4.6/cmath:246:11: error: ‘::floor’ has not been declared
/usr/include/c++/4.6/cmath:262:11: error: ‘::fmod’ has not been declared
/usr/include/c++/4.6/cmath:272:11: error: ‘::frexp’ has not been declared
/usr/include/c++/4.6/cmath:288:11: error: ‘::ldexp’ has not been declared
/usr/include/c++/4.6/cmath:304:11: error: ‘::log’ has not been declared
/usr/include/c++/4.6/cmath:320:11: error: ‘::log10’ has not been declared
/usr/include/c++/4.6/cmath:336:11: error: ‘::modf’ has not been declared
/usr/include/c++/4.6/cmath:346:11: error: ‘::pow’ has not been declared
/usr/include/c++/4.6/cmath:381:11: error: ‘::sin’ has not been declared
/usr/include/c++/4.6/cmath:397:11: error: ‘::sinh’ has not been declared
/usr/include/c++/4.6/cmath:413:11: error: ‘::sqrt’ has not been declared
/usr/include/c++/4.6/cmath:429:11: error: ‘::tan’ has not been declared
/usr/include/c++/4.6/cmath:445:11: error: ‘::tanh’ has not been declared

What version of the product are you using? On what operating system?

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 

Linux 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Same solution as above.

Original comment by simpson....@gmail.com on 14 Mar 2013 at 11:16