Blitz logo

Blitz Bugs :

From: Andreas Reifschneider (AndreasReifschneider_at_[hidden])
Date: 2004-04-15 13:26:13


After running configure
cd /build/Blitz++-0.7
./configure --prefix=/build/Blitz++-0.7/ --with-cxx=gcc
[...]
The configure script has generated makefiles for your platform.
You have several options now:

        make lib Check the compiler and create libblitz.a
        make check-testsuite Build and check the testsuite
        make check-examples Build and check the examples
        make check-benchmarks Build and check the benchmarks (takes a
long time)
        make install Install Blitz++

> make lib
  everythink was OK
> make check-testsuite
  OK
> make check-examples
Running examples...
array
cartesian
cast
cfd
  seems not to terminate (terminates however surprisingly after 'make
install' into the same directory, is 'make install' prerequisite for
'make check-benchmarks'? If so would have been nice if this was stated
in configure).

> make check-benchmarks
[....]
valarray<T>: N = 562341
rm -f ctime1 ctime2 ctime3 ctime4 ctime5 ctime1v ctime2v ctime3v ctime4v
ctime5v
Flags:
Compile time for ctime1.cpp:
ctime1.cpp:1:25: blitz/array.h: Datei oder Verzeichnis nicht gefunden
ctime1.cpp:3: error: `blitz' was not declared in this scope
ctime1.cpp:5: error: ISO C++ forbids declaration of `BZ_USING_NAMESPACE'
with
   no type
ctime1.cpp:5: error: Syntaxfehler before `int'

real 0m0.034s
user 0m0.010s
sys 0m0.002s
Compile time for ctime2.cpp:
ctime2.cpp:1:25: blitz/array.h: Datei oder Verzeichnis nicht gefunden
ctime2.cpp:3: error: `blitz' was not declared in this scope
ctime2.cpp:5: error: ISO C++ forbids declaration of `BZ_USING_NAMESPACE'
with
   no type
ctime2.cpp:5: error: Syntaxfehler before `int'
ctime2.cpp: In function `void foo()':
ctime2.cpp:12: error: `Array' undeclared (first use this function)
ctime2.cpp:12: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
ctime2.cpp:12: error: parse error before `,' token
ctime2.cpp:13: error: `A' undeclared (first use this function)
ctime2.cpp:13: error: `B' undeclared (first use this function)
ctime2.cpp:13: error: `C' undeclared (first use this function)
ctime2.cpp:13: error: `D' undeclared (first use this function)
ctime2.cpp:13: error: `E' undeclared (first use this function)
[...]
  It seems not to find blitz/array.h;
  replacing
    for benchmark in $(COMPILE_TIME_BENCHMARKS) ; do \
      echo Compile time for $$benchmark.cpp: ; \
      time $(CXX) $(CXXFLAGS) -c $$benchmark.cpp; \
    done
  in benchmarks/Makefile(.am) in target "ctime:" with:
    for benchmark in $(COMPILE_TIME_BENCHMARKS) ; do \
      echo Compile time for $$benchmark.cpp: ; \
      time $(CXX) $(DEFAULT_INCLUDES) $(INCLUDES) \
      $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c
$$benchmark.cpp; \
    done
  solves the problem.

Documentation bug on:
http://www.oonumerics.org/blitz/manual/blitz02.html#l27
2.1.1: Template parameters
[...]
y = 1, 0, 0, 0
    0, 1, 0, 0
    0, 0, 1, 0
    0, 0, 0, 1;
didn't work:
 myprogram1.cpp: In function `int main(int, char**)':
 myprogram1.cpp:13: error: parse error before numeric constant
Adding commas:
  y = 1, 0, 0, 0,
    0, 1, 0, 0,
    0, 0, 1, 0,
    0, 0, 0, 1;
 solves the problem.

And it would be nice if the e-mail addresses in Mailing List Archives
were hidden (to avoid harvesting through SpamBots), see e.g. the 'From:'
field on http://www.oonumerics.org/MailArchives/blitz-bugs/msg00469.php