Install Metric Evaluator

Posted by Tong on November 25, 2018

进入metricEvaluator文件夹,直接运行make,碰到下面的问题

Error 1

linalg/runtimeError.cpp: In constructor ‘RuntimeError::RuntimeError(const char*, ...)’:
linalg/runtimeError.cpp:49:43: error: ‘vasprintf’ was not declared in this scope
   int b = vasprintf(&auxPtr, fmt, arg_list);

Solution: 打开linalg/runtimeError.cpp,加入下面头文件

#include <stdarg.h>

#include <stdio.h>