Skip to content

Lab2 co-simulation error: 'mpfr_srcptr' has not been declared #69

Answered by BrianEE07
yukaii2019 asked this question in Q&A
Discussion options

You must be logged in to vote

嗨,我上網查好像是在系統中有相同的 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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yukaii2019
Comment options

Answer selected by yukaii2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants