I am a newbie to blitz.
I had succeeded in compiling blitz src, blitz-0.8, and
obtained the
library file, blitz.lib under VC++.net 2003 standard on
winxp. Then I downloaded the example
program named rangexpr.cpp from homepage of blitz++
for test but errors occurred,
error : M_PI not define.
error
C2679: binary operator ‘*’ …
on the line in the
program as below,
Vector<float>
x=cos(Range(0,7)*(2.0 * M_PI / 8);
Where is M_PI defined?
I make sure that searching path of header files of blitz
is included by following step:
Tools->option->Projects->C/C++
directory-> include file and move it to
the top.
Even I copy the library to the directory of the project
I created in VC++.net 2003
and use #pragma comment(lib,”blitz.lib”),
the problem could not be solved.
Could anybody give me a clue?
THX a million!