Blitz logo

Blitz Support :

From: Lukasz Dobrek (dobrek_at_[hidden])
Date: 2005-05-26 08:40:19


Hi
I have a problem with using in the same project blitz-0.8 and
boost-1.32, I use VS .NET
environment. I didn't test it with other compilers, so I don't know whether it
is reproducable in different setings, but:

this works:

#include <blitz/array.h>
#include <boost/date_time/posix_time/posix_time.hpp>
void test()
{

}
while this:

#include <boost/date_time/posix_time/posix_time.hpp>
#include <blitz/array.h>
void test()
{
}

does not. It failes with plenty of syntax errors:

c:\ALM_Hybrid\blitz\blitz\vecmin.cc(59) : warning C4003: not enough
actual parameters for macro 'min'
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(59) : error C2226: syntax error :
unexpected type 'blitz::Vector<P_numtype>'
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(59) : error C2988: unrecognizable
template declaration/definition
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(59) : error C2059: syntax error : ')'
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(59) : error C2059: syntax error : ')'
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(67) : error C2653: 'P_expr' : is
not a class or namespace name
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(67) : error C2146: syntax error :
missing ',' before identifier 'T_numtype'
c:\ALM_Hybrid\blitz\blitz\vecmin.cc(67) : error C2065: 'T_numtype' :
undeclared identifier

and so on and on.

I don't know whether it is more blitz or more boost issue, but As the
errors appear to come
from Blitz I send it first heare.

Regrads
Lukasz