Lab2 co-simulation error: 'mpfr_srcptr' has not been declared #69
Answered
by
BrianEE07
yukaii2019
asked this question in
Q&A
-
大家好: |
Beta Was this translation helpful? Give feedback.
Answered by
BrianEE07
Sep 24, 2023
Replies: 1 comment 1 reply
-
嗨,我上網查好像是在系統中有相同的 gmp.h 檔案,優先層級不對所引起的,我的解決方式是在 FIR.h 上面加入以下兩行,cosim 就不會有 error 了,可以參考下圖。 #include <gmp.h> 可以參考官方這篇的留言: Using ap_int.h in my design causes many C/RTL cosimulation errors, mainly in mpfr.h. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yukaii2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
嗨,我上網查好像是在系統中有相同的 gmp.h 檔案,優先層級不對所引起的,我的解決方式是在 FIR.h 上面加入以下兩行,cosim 就不會有 error 了,可以參考下圖。
#include <gmp.h>
#define __gmp_const const
可以參考官方這篇的留言:
Using ap_int.h in my design causes many C/RTL cosimulation errors, mainly in mpfr.h.