Hugin relies on Vigra, and Vigra contains a large number of templates, compiling hugin is a large number of errors that occur as follows:
"Unexpected token (s) preceding ': '; Skipping apparent function body "
"' vigra::numerictraits<unsigned char> ': cannot specialize template in current scope"
The error message for this template class is ambiguous, which makes locating the source of the error difficult.
No way, a single CPP file compiled separately, one after the other, found that the Huginbase project in the Exiv2Helper.cpp compilation error.
It then steps through the comments, compiles, and finally finds the sequence that contains the header file. That is to put:
#include "Exiv2Helper.h"
#include "hugin_math/hugin_math.h"
Switch
#include "hugin_math/hugin_math.h"
#include "Exiv2Helper.h"
Just fine.
Template error when Hugin is below windows