All pastes #814189 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-13 01:44 UTC
rendered paste body
#include "indicators.h"
#include <vector>
#include <cmath>


using namespace std;

Indicators::Indicators (int BarReserve, int TickReserve)
{

...


double Indicators::hma (int offset, unsigned count, int price)
{
	int first = static_cast<int>(floor(sqrt(count)));


/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:49: error: '#pragma' is not allowed here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:101: error: '::acos' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:118: error: '::asin' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:133: error: '::atan' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:148: error: '::atan2' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:164: error: '::ceil' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:179: error: '::cos' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:194: error: '::cosh' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:209: error: '::exp' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:224: error: '::fabs' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:239: error: '::floor' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:254: error: '::fmod' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:264: error: '::frexp' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:279: error: '::ldexp' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:294: error: '::log' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:309: error: '::log10' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:324: error: '::modf' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:343: error: '::pow' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:365: error: '::sin' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:380: error: '::sinh' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:395: error: '::sqrt' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:410: error: '::tan' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:425: error: '::tanh' has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath: In function 'int __gnu_cxx::__capture_isnormal(_Tp)':
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:466: error: 'FP_NORMAL' was not declared in this scope
indicators.cpp: In member function 'double Indicators::hma(int, unsigned int, int)':
indicators.cpp:119: error: call of overloaded 'floor(double)' is ambiguous
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:242: note: candidates are: float std::floor(float)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cmath:246: note:                 long double std::floor(long double)