Hi!
I’m trying to build Blitz++ on my openSuse11 machine and it just doesn’t build the library for it. I think this might be due to a compiler misconfiguration, but I’m still new to compiling on linux so I need any help on this. When I make the lib I get the following output:
make[1]: Entering directory
/home/stafford/Documents/HOT_src_1.0rc6/src/3rdparty/src/blitz-0.9/lib' if /bin/sh ../libtool --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF ".deps/globals.Tpo" -c -o globals.lo
test -f ‘…/src/globals.cpp’ || echo ‘./’../src/globals.cpp; \ then mv -f ".deps/globals.Tpo" ".deps/globals.Plo"; else rm -f ".deps/globals.Tpo"; exit 1; fi c++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c ../src/globals.cpp -o globals.o In file included from ../blitz/applics.h:400, from ../blitz/vecexpr.h:32, from ../blitz/vecpick.cc:16, from ../blitz/vecpick.h:293, from ../blitz/vector.h:449, from ../blitz/tinyvec.h:430, from ../blitz/indexexpr.h:30, from ../src/globals.cpp:11: ../blitz/mathfunc.h: In static member function 'static long int blitz::_bz_abs<long int>::apply(long int)': ../blitz/mathfunc.h:45: error: 'labs' is not a member of 'std' In file included from ../blitz/array/funcs.h:29, from ../blitz/array/newet.h:29, from ../blitz/array/et.h:27, from ../blitz/array-impl.h:2515, from ../blitz/array.h:32, from ../src/globals.cpp:13: ../blitz/funcs.h: In static member function 'static int blitz::Fn_abs<int>::apply(int)': ../blitz/funcs.h:509: error: call of overloaded 'abs(int&)' is ambiguous /usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double) /usr/include/c++/4.3/cmath:103: note: float std::abs(float) /usr/include/c++/4.3/cmath:107: note: long double std::abs(long double) ../blitz/funcs.h: In static member function 'static long int blitz::Fn_abs<long int>::apply(long int)': ../blitz/funcs.h:530: error: 'labs' is not a member of 'std' make[1]: *** [globals.lo] Error 1 make[1]: Leaving directory
/home/stafford/Documents/HOT_src_1.0rc6/src/3rdparty/src/blitz-0.9/lib’
make: *** [blitz-library] Error 1
stafford@linux-er3h:~/Documents/HOT_src_1.0rc6/src/3rdparty/src/blitz-0.9> make check-testsuite
make[1]: Entering directory/home/stafford/Documents/HOT_src_1.0rc6/src/3rdparty/src/blitz-0.9/lib' if /bin/sh ../libtool --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF ".deps/globals.Tpo" -c -o globals.lo
test -f ‘…/src/globals.cpp’ || echo ‘./’../src/globals.cpp; \ then mv -f ".deps/globals.Tpo" ".deps/globals.Plo"; else rm -f ".deps/globals.Tpo"; exit 1; fi c++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c../src/globals.cpp -o globals.o In file included from ../blitz/applics.h:400, from ../blitz/vecexpr.h:32, from ../blitz/vecpick.cc:16, from ../blitz/vecpick.h:293, from ../blitz/vector.h:449, from ../blitz/tinyvec.h:430, from ../blitz/indexexpr.h:30, from ../src/globals.cpp:11: ../blitz/mathfunc.h: In static member function 'static long int blitz::_bz_abs<long int>::apply(long int)': ../blitz/mathfunc.h:45: error: 'labs' is not a member of 'std' In file included from ../blitz/array/funcs.h:29, from ../blitz/array/newet.h:29, from ../blitz/array/et.h:27, from ../blitz/array-impl.h:2515, from ../blitz/array.h:32, from ../src/globals.cpp:13: ../blitz/funcs.h: In static member function 'static int blitz::Fn_abs<int>::apply(int)': ../blitz/funcs.h:509: error: call of overloaded 'abs(int&)' is ambiguous /usr/include/c++/4.3/cmath:99: note: candidates are: double std::abs(double) /usr/include/c++/4.3/cmath:103: note: float std::abs(float) /usr/include/c++/4.3/cmath:107: note: long double std::abs(long double) ../blitz/funcs.h: In static member function 'static long int blitz::Fn_abs<long int>::apply(long int)': ../blitz/funcs.h:530: error: 'labs' is not a member of 'std' make[1]: *** [globals.lo] Error 1 make[1]: Leaving directory
/home/stafford/Documents/HOT_src_1.0rc6/src/3rdparty/src/blitz-0.9/lib’
make: *** [blitz-library] Error 1
What could I have done wrong? I just followed the steps of the install note and my openSuse is not strongly modified. I’d appreciate any help,
Phong