tatsuyah / Model-Predictive-Control

C++ implementation of Model Predictive Control(MPC)
MIT License
89 stars 16 forks source link

template argument problem #2

Open vimar-gu opened 5 years ago

vimar-gu commented 5 years ago

Hi there, while executing make command, I met with the following error:

json.hpp: In function ‘bool nlohmann::operator<(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference)’: json.hpp:6057:62: error: wrong number of template arguments (1, should be 2) return lhs.m_value.array < rhs.m_value.array;

Could you help me solve that? Or is there any specific version I should use?

YellowOrz commented 3 years ago

I also met this problem. I solved it by using gcc-6 and g++-6 instead of 7. But I cannot find the URL of origin solution.