Menu

Welcome to Help

Help
2009-07-08
2013-04-16
  • Nobody/Anonymous

    Welcome to Help

     
    • burslem2001

      burslem2001 - 2009-07-08

      Hello,

      I'm attempting to build blitz for linux 2.6.25.

      I perform the following in the blitz_0.9 directory:

      1) ./configure

      2) make lib

      [root@localhost blitz-0.9]# make lib
      make[1]: Entering directory `/home/garyc/cosmos/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:401,
                       from ../blitz/vecexpr.h:33,
                       from ../blitz/vecpick.cc:17,
                       from ../blitz/vecpick.h:294,
                       from ../blitz/vector.h:450,
                       from ../blitz/tinyvec.h:431,
                       from ../blitz/indexexpr.h:31,
                       from ../src/globals.cpp:12:
      ../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:30,
                       from ../blitz/array/newet.h:30,
                       from ../blitz/array/et.h:28,
                       from ../blitz/array-impl.h:2516,
                       from ../blitz/array.h:33,
                       from ../src/globals.cpp:14:
      ../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/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/cmath:99: note: candidates are: double std::abs(double)
      /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/cmath:103: note:                 float std::abs(float)
      /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/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/garyc/cosmos/blitz-0.9/lib'
      make: *** [blitz-library] Error 1
      [root@localhost blitz-0.9]#

      Getting conflicts?

      Any idea. Is there a version of blitz that can build smoothly?

      Thanks,
      Garyc

       

Log in to post a comment.