VIVADO HLS如何正确设置include

我的软件是VIVADO_HLS 2017.1, 我想用HLS_math 库,但是只要加入include hls_math.h , 进行C代码仿真 GCC编译器就好像会死掉,等待很长时间20几分钟后会报个错。实在不解,如果不用HLS自己的库,C仿真OK。include hls_opencv.h 也会类似现象。我看了下,include已经包含了路径(见附件)
代码如下很简单,见附件:
top.cpp
top_test.cpp

错误信息如下
INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../../top_test.cpp in debug mode
Compiling ../../../../top.cpp in debug mode
In file included from C:/Xilinx/Vivado_HLS/2017.1/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from C:/Xilinx/Vivado_HLS/2017.1/include/hls_fpo.h:172,
from C:/Xilinx/Vivado_HLS/2017.1/include/hls_half.h:57,
from C:/Xilinx/Vivado_HLS/2017.1/include/ap_int.h:74,
from C:/Xilinx/Vivado_HLS/2017.1/include/hls_math.h:47,
from ../../../../top.cpp:2:
C:/Xilinx/Vivado_HLS/2017.1/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined [enabled by default]
C:/Xilinx/Vivado_HLS/2017.1/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition

cc1plus.exe: out of memory allocating 65536 bytes
make: *** [obj/top.o] Error 1
CRITICAL WARNING: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

附件大小
hlsgong_cheng_includejie_tu_.png84.26 KB
top.txt125 个字节
top_test.txt252 个字节

(1楼)自己顶一下,是gcc还缺少是么library路径吗?

easybad 在 星期四, 07/06/2017 - 11:13 发表。

自己顶一下,是gcc还缺少是么library路径吗?

请加入我们的QQ交流群探讨:QQ:250292526

judyzhong 在 星期五, 07/07/2017 - 17:38 发表。

请加入我们的QQ交流群探讨:QQ:250292526

重新上传代码,我可以看看

zhangyunlei270 在 星期一, 09/17/2018 - 10:30 发表。

重新上传代码,我可以看看