Blitz logo

Blitz Support :

From: cshuieh7_at_[hidden]
Date: 2003-06-16 13:35:31


Hi,

I am learning how to use blitz through
examples. Some of them cannot be compiled,
such as erf.cpp. I attach the error message
at the end of this mail.

I use blitz 0.6 with g++ 3.2.2 under mandrake
9.0 environment.

Another question. Is there an example using
complex<double> in the rank 1 or rank 2 array?

Best regards,

Clark

---------------------------------error msg begin ---------
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ erf.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase erf.cpp -version -o /home/clarks/tmp/ccU1eRho.s
GNU CPP version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) (i586-mandrake-linux-gnu)
        compiled by GNU C version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk).
ignoring nonexistent directory "/usr/i586-mandrake-linux-gnu/include"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /usr/local/include
 /usr/include/c++/3.2.2
 /usr/include/c++/3.2.2/i586-mandrake-linux-gnu
 /usr/include/c++/3.2.2/backward
 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/include
End of search list.
erf.cpp: In function `int main()':
erf.cpp:26: no match for `blitz::Range& * double&' operator
/usr/local/include/blitz/meta/metaprog.h:58: candidates are: T blitz::operator*(const T&, blitz::_bz_meta_nullOperand) [with T = blitz::Range]
erf.cpp:31: no match for `blitz::Range& * double&' operator
/usr/local/include/blitz/meta/metaprog.h:58: candidates are: T blitz::operator*(const T&, blitz::_bz_meta_nullOperand) [with T = blitz::Range]
erf.cpp:31: `sqr' undeclared (first use this function)
erf.cpp:31: (Each undeclared identifier is reported only once for each function it appears in.)
erf.cpp:35: no match for `blitz::Vector<double>& - blitz::Vector<double>&' operator
/usr/local/include/blitz/vecexpr.h:289: candidates are: blitz::_bz_VecExpr<blitz::_bz_VecExprUnaryOp<blitz::Range, blitz::_bz_negate<int> > > blitz::operator-(blitz::Range)
erf.cpp:41: no match for `blitz::Range& * double&' operator
/usr/local/include/blitz/meta/metaprog.h:58: candidates are: T blitz::operator*(const T&, blitz::_bz_meta_nullOperand) [with T = blitz::Range]
erf.cpp:46: no match for `blitz::Vector<double> + blitz::Vector<double>' operator
/usr/local/include/blitz/meta/metaprog.h:56: candidates are: T blitz::operator+(const T&, blitz::_bz_meta_nullOperand) [with T = blitz::Vector<double>]
erf.cpp:49: no match for `blitz::Vector<double>& - blitz::Vector<double>' operator
/usr/local/include/blitz/vecexpr.h:289: candidates are: blitz::_bz_VecExpr<blitz::_bz_VecExprUnaryOp<blitz::Range, blitz::_bz_negate<int> > > blitz::operator-(blitz::Range)
erf.cpp:54: no match for `int * blitz::Vector<double>' operator
/usr/local/include/blitz/meta/metaprog.h:58: candidates are: T blitz::operator*(const T&, blitz::_bz_meta_nullOperand) [with T = int]
erf.cpp:57: no match for `blitz::Vector<double>& - blitz::Vector<double>' operator
/usr/local/include/blitz/vecexpr.h:289: candidates are: blitz::_bz_VecExpr<blitz::_bz_VecExprUnaryOp<blitz::Range, blitz::_bz_negate<int> > > blitz::operator-(blitz::Range)