![]() |
Blitz Support : |
From: denbosch_at_[hidden]
Date: 2003-06-17 02:50:10
Looks like your BLITZ++ library is not in the standard search path of your
distribution. When I compile (under solaris), I have to do the command:
$ g++ -c -O3 -I/home/denbosch/blitz++/include myprogram.cpp
$ g++ myprogram.o -lblitz -lm
but for the second command, make sure your path variable knows where to
find the library. In my case, I have:
denbosch> echo $LD_LIBRARY_PATH
/usr/local/X11/R6/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/gnu/dynlib:/usr/local/img/dynlib:/usr/local/lib:/home/denbosch/gsl/lib:/usr/local/gnu/lib:/home/denbosch/blitz++/lib
denbosch>
cheers,
Ides
>
>
> 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)
>
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support