UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer yanjian
Observer
341 次查看
注册日期: ‎11-28-2018

vivado HLS编译错误

C:/Xilinx/Vivado_HLS/2016.3/include/opencv2/core/types_c.h:324:28: error: call of overloaded 'lrint(double&)' is ambiguous
C:/Xilinx/Vivado_HLS/2016.3/include/opencv2/core/types_c.h:324:28: note: candidates are:
c:\xilinx\vivado_hls\2016.3\msys\bin\../lib/gcc/mingw32/4.6.2/../../../../include/math.h:686:21: note: long int lrint(double)
C:/Xilinx/Vivado_HLS/2016.3/include/hls_half.h:2597:15: note: long int detail::lrint(half)
C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_round.h:412:10: note: long int hls::lrint(double)
make: *** [obj/testbench.o] Error 1
ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s).

这个编译错误原因在哪里??好像是数据类型出问题了?

0 项奖励
1 条回复1
Teacher xilinxacct
Teacher
336 次查看
注册日期: ‎10-24-2018

回复: vivado HLS编译错误

@yanjian

There are multiple choices of the Iring function, and the compiler doesn't know for sure which one to use. Provide the namespace and if you are passing a literal value, type it specifically to match the call you intend to use.

Please mark as solution accepted. Kudos also welcomed.

0 项奖励