[xcrysden] make.sys
Tone Kokalj
tone.kokalj at ijs.si
Fri Jan 27 14:46:33 CET 2012
On Wed, 2012-01-25 at 22:21 +0330, mohammad ali mohammadi wrote:
> and when make all ,this error occurs:
>
> gcc -ansi -funroll-loops -fPIC -DUSE_FONTS -DUSE_FONTS
> -I/home/mohammad/XCrySDen-1.5.24-src-all/external/src/tcl8.5.9/generic
> -I/home/mohammad/XCrySDen-1.5.24-src-all/external/src/tk8.5.9/generic
> -I/home/mohammad/XCrySDen-1.5.24-src-all/external/include
> -I/usr/include -c shank_Hinv.c
> shank_Hinv.c:7:27: error: ‘M_PI’ undeclared here (not in a function)
The easiest is to define the M_PI in the C/shank_Hinv.c file. Edit the
file and insert:
#define M_PI 3.14159265358979323846
before the line:
const double two_pi = 2.0*M_PI;
Regards, Tone
--
Anton Kokalj
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia
(tel: +386-1-477-3523 // fax:+386-1-477-3822)
Please, if possible, avoid sending me Word or PowerPoint attachments.
See: http://www.gnu.org/philosophy/no-word-attachments.html
More information about the XCrySDen
mailing list