Boost causing errors during compilation

983 Views Asked by At

I have recently added MLPack to my software, and I tried to compile the MLPack as coming from CMake. MLPack itself builds just fine with Visual Studio 2012, and then I wanted to integrate it into my own software.

I have not even done one line of code with it yet, just a

#include "../../mlpack-1.0.8/build-VS/include/mlpack/core.hpp"

in one of my headers. Thats all, and when I want to compile it, I get a huge list of errors, all coming from Boost 1.55, the first three errors are for example (1-6 are warnings)

Error   7   error C2332: 'class' : missing tag name d:\development\boost_1_55_0\boost\iterator\iterator_facade.hpp  43
Error   8   error C2011: '<unnamed-tag>' : 'enum' type redefinition d:\development\boost_1_55_0\boost\iterator\iterator_facade.hpp  43
Error   9   error C2143: syntax error : missing ',' before 'constant'   d:\development\boost_1_55_0\boost\iterator\iterator_facade.hpp  43

The line from the iterator_facade.hpp is

  template <class I, class V, class TC, class R, class D> class iterator_facade;

What is happening here?

0

There are 0 best solutions below