I try to build the celestia 1.6.1 in my machine my OS is scientific linux 7.2 my gcc is 4.8.5

so, I command '$./configure --with-gnome' and got this result

Code: Select all

`***************************************************************`

** Celestia configuration complete. Now do a 'make' followed **

** by 'make install' **

***************************************************************

Front-End: Gnome

Use Cairo: yes

Use Lua: yes

Use Theora: yes

So, I try to build using '$make' and got this error

Code: Select all

`../celmath/intersect.h: In instantiation of ‘bool testIntersection(const Ray3<T>&, const Ellipsoid<T>&, T&) [with T = double]’:`

planetgrid.cpp:73:82: required from here

../celmath/intersect.h:74:43: error: ‘square’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

Vector3<T> s((T) 1.0 / square(e.axes.x),

^

In file included from ../celmath/quaternion.h:16:0,

from body.h:18,

from planetgrid.cpp:17:

../celmath/mathlib.h:52:21: note: ‘template<class T> T square(T)’ declared here, later in the translation unit

template<class T> T square(T x)

^

In file included from planetgrid.cpp:15:0:

../celmath/intersect.h:75:43: error: ‘square’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

(T) 1.0 / square(e.axes.y),

^

In file included from ../celmath/quaternion.h:16:0,

from body.h:18,

from planetgrid.cpp:17:

../celmath/mathlib.h:52:21: note: ‘template<class T> T square(T)’ declared here, later in the translation unit

template<class T> T square(T x)

^

In file included from planetgrid.cpp:15:0:

../celmath/intersect.h:76:43: error: ‘square’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

(T) 1.0 / square(e.axes.z));

^

In file included from ../celmath/quaternion.h:16:0,

from body.h:18,

from planetgrid.cpp:17:

../celmath/mathlib.h:52:21: note: ‘template<class T> T square(T)’ declared here, later in the translation unit

template<class T> T square(T x)

Anyone cam tell-me how I can solve this problem?

thanks in advance!