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
102 次查看
注册日期: ‎05-02-2019

vivado HLS csim 错误,出现j/main.o:main.cpp:(.text+0x18db): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'

vivado HLS2018.2 进行C++代码仿真时,出现以下错误。AHF371I6${WY)452_%I78@9.png

相对应的源码如下:L8K$GJ9V0`RJFQVA$_[8T}X.png

请问上述错误如何解决?

0 项奖励
2 条回复2
Xilinx Employee
Xilinx Employee
56 次查看
注册日期: ‎03-24-2010

回复: vivado HLS csim 错误,出现j/main.o:main.cpp:(.text+0x18db): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&a

可能你用的opencv版本较新,和HLS自带的不匹配

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 项奖励
31 次查看
注册日期: ‎05-02-2019

回复: vivado HLS csim 错误,出现j/main.o:main.cpp:(.text+0x18db): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&a

有这个可能,这个工程原来是用vivado2016.4,我用的是vivado2018.2,我换vivado2016.4再试试
0 项奖励