新手上路
- 积分
- 46
- 金钱
- 46
- 注册时间
- 2019-3-27
- 在线时间
- 9 小时
|
1金钱
用vivado HLS 和xilinx官方库做了一点程序。
但是在RTL/C联合仿真时报错。
报错理由时:
body of constexpr function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]' not a return-statement.
定位到库中,库中函数是:
template<typename _Tp>
_GLIBCXX14_CONSTEXPR
inline const _Tp&
max(const _Tp& __a, const _Tp& __b)
{
// concept requirements
__glibcxx_function_requires(_LessThanComparableConcept<_Tp>)
//return __a < __b ? __b : __a;
if (__a < __b)
希望能得到帮助解决以下 我对C++不是很了解。
谢谢
|
|