Blitz logo

Blitz Support :

From: David Smith (drsmith4565_at_[hidden])
Date: 2003-11-24 16:15:56


I wrote a program utilizing Blitz, and it compiled and ran just dandy on my Wintel PC using Cygwin/g++. But I need to integrate it into our group's projects, which use MSVC 6.0. I installed Intel's 30-day trial compiler and gave it a try. It gives me a lot of error messages like this:
 
Compiling...
slab.cpp
C:\SRC\BLITZ++-0.7\blitz/mathfunc.h(45): error: namespace "std" has no member "labs"
      { return BZ_MATHFN_SCOPE(labs)((long)x); }
               ^
          detected during instantiation of class "blitz::_bz_abs<long>" at line 55
C:\SRC\BLITZ++-0.7\blitz/mathfunc.h(65): error: namespace "std" has no member "fabs"
      { return BZ_MATHFN_SCOPE(fabs)((float)x); }
               ^
...
          detected during instantiation of class "blitz::_bz_tanh<std::complex<long double>>" at line 2700
C:\SRC\BLITZ++-0.7\blitz/funcs.h(449): error: no instance of function template "std::abs" matches the argument list
            argument types are: (blitz::Fn_abs<int>::T_numtype1)
      { return BZ_MATHFN_SCOPE(abs)(a); }

 
What do I need to do to cure this? My program compiled and ran OK under Cygwin even before I ran automake / make to set up the library.
 
My program starts out with
 
#include "stdafx.h"
#include <blitz/array.h>
#include <blitz/tinyvec-et.h>
#include <blitz/vecwhere.h> // for 'where' function

 
As a matter of fact, I get the same complaints from the compiler if these #includes are the only thing in my source file.
 
  David Smith

---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now