---
title: FastDB执行make命令编译安装时报错的解决方法
description: "FastDB执行make命令编译安装时提示“error: call of overloaded ‘fmax(float&, float&)’ is ambiguous quote.high = fmax(quote.open, quote.close);”和“error: call of overloaded ‘fmin(float&, float&)’ is ambiguous quote.low = fmin(quote.open, quote.close);”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/FastDB/openmind_fastdb376_03_0023.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/FastDB/openmind_fastdb376_03_0023.html
indexId: 947dee13fa04afdd987ad47d231837432e26e810ec8b99c3e8ea59e909477f8b76
---
# FastDB执行make命令编译安装时报错的解决方法

#### 问题现象描述

FastDB执行make命令编译安装时提示“error: call of overloaded ‘fmax(float&, float&)’ is ambiguous quote.high = fmax(quote.open, quote.close);”和“error: call of overloaded ‘fmin(float&, float&)’ is ambiguous quote.low = fmin(quote.open, quote.close);”。


#### 关键过程、根本原因分析

testtimeseries.cpp文件中的fmax函数和fmin函数与cmath中的函数名同名导致的问题，只需改变testtimeseries.cpp中函数名即可。


#### 结论、解决方案及效果

1. 打开testtimeseries.cpp文件。
  1 vim examples/testtimeseries.cpp

2. 按“i”进入编辑模式，输入如下信息。
  1 2 3 :%s/fmax/fmax_t/g :%s/fmin/fmin_t/g :wq

3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
4. 重新执行make编译。
