Compile error with boost 1.34
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmv |
New
|
Undecided
|
Unassigned |
Bug Description
When compiling with boost 1.34, I get the following error:
namespace ublas = boost::
using ublas::range;
typedef ublas::
typedef ublas::
typedef ublas::
typedef ublas::
typedef ublas::
typedef ublas::
vec sphere_
{
double norm = norm_2(P);
int n = P.size();
double fudge, nx, sign;
if (P[n-1] < 0.0)
sign = -1;
else
sign = 1;
nx = 2*acos(
if (nx != 0.) {
fudge = sign*nx/
} else {
fudge = 0.0;
}
vec R(n-1);
for (int i=0; i<n-1; i++)
R[i] = fudge*P[i];
assert(norm_2(R) < M_PI + 1e-10);
return R; // ERROR HERE????
}
/* Generates the following incomprehensible error
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/mv.o -c -Wall -W -O0 -Werror -Iinclude -I/usr/
g++ -o src/optimization.o -c -Wall -W -O0 -Werror -Iinclude -I/usr/
cc1plus: warnings being treated as errors
/usr/local/
/usr/local/
src/optimizatio
/usr/local/
scons: *** [src/optimizati
scons: building terminated because of errors.
*/
Fixed by patching storage.hpp in Boost 1.34. Not sure if this patch will cause problems.