![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2004-08-30 16:08:01
Hi Andre,
Usually this error results from failing to also compile the blitz library
itself with -g
and -DBZ_DEBUG or from failing to link with the blitz library. Since you're
getting a run-time error, you may be using run-time linkage with the shared
(dynamically loaded) version of the blitz library. If you have built
libblitz.so rather than libblitz.a, check that you have the location of the
shared library in your LD_LIBRARY_PATH variable. Please let me know if none
of these suggestions resolves your problem.
Thanks, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Andre Massing
> Sent: Saturday, August 28, 2004 1:47 PM
> To: Blitz++ support mailing-list
> Subject: [Blitz-support] Debug mode does not work
>
>
> Hello,
>
> First I want to thank you for the quick answer concerning my
> compiling
> problem. With your help my programm was compiled but now
> there is a run-time error, so I intended to apply the debug
> mode. Unfortunately running the gcc 3.3.3 compiler (using
> blitz++0.7) with "-g -DBZ_DEBUG"
> did not work as expected. It only gave the following message
> (without producing any executable file):
>
>
> radaumain2.o(.gnu.linkonce.t._ZN5blitz5ArrayIdLi2EE8evaluateIN
> S_13_bz_ArrayExprINS_17FastArrayIteratorIdLi2EEEEENS_10_bz_updateIdd
> EEEERS1_T_T0_+0x31): In function `blitz::Array<double,
> (int)2>& blitz::Array<double,
> (int)2>::evaluate<blitz::_bz_ArrayExpr<blitz:
> :FastArrayIterator<double, (int)2> >,
> blitz::_bz_update<double, double>>
> (blitz::_bz_ArrayExpr<blitz::FastArrayIterator<double,
> (int)2> >, blitz::_bz_update<double, double>)':
> /usr/include/g++/bits/basic_string.h:916: undefined reference
> to `blitz::assertFailMode'
>
> radau.o(.gnu.linkonce.t._ZN5blitz5ArrayIdLi2EE8evaluateINS_17F
astArrayIteratorIdLi2EEENS_15> _bz_plus_updateIddEEEERS1_T_T0_+0x31):
> In function `blitz::Array<double, (int)2>&
> blitz::Array<double,(int)2>::evaluate<blitz::FastArrayIterator
> <double, (int)2>,
> blitz::_bz_plus_update<double, double>
> >(blitz::FastArrayIterator<double,(int)2>,
> blitz::_bz_plus_update<double, double>)':
> /usr/local/include/blitz/memblock.cc:51: undefined reference
> to `blitz::assertFailMode'
>
> newton.o(.gnu.linkonce.t._ZN5blitz5ArrayIdLi2EE8evaluateINS_13
> _bz_ArrayExprINS_21_bz_ArrayExprConstantIdEEEENS_10_bz_updateIddEEEE
> RS1_T_T0_+0x2e): In function `blitz::Array<double, (int)2>&
> blitz::Array<double,
> (int)2>::evaluate<blitz::_bz_ArrayExpr<blitz::_bz_ArrayExprCon
> stant<double> >,
> blitz::_bz_update<double,
> double>>(blitz::_bz_ArrayExpr<blitz::_bz_ArrayExprConstant<double> >,
> blitz::_bz_update<double, double>)':
> /usr/local/include/blitz/tinyvec.cc:103: undefined reference
> to `blitz::assertFailMode'
>
> I also tried to run the debug mode with the example given in
> the blitz manual,but the programm got compiled, only
> producing the message
> "debugtest.cpp:13:2: warning: no newline at end of file".
>
> Do you have any idea why the compiler acted this way?
> Thank you.
>
> Best Regards
> Andre
>
>
>
>
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>