cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
baring42read
Adventurer
Adventurer
204 Views
Registered: ‎08-28-2019

Error when extern "c" is used in vitis

Hi,

So I have successfully tested a couple of programs  the vitis using zcu102, including the vector addition. I  wanted to try the same for a custom kernel as stated in this document https://xilinx.github.io/Vitis-Tutorials/2020-1/docs/my-first-program/cpp_kernel.html  and got this error

ERROR: [v++ 207-2851] unknown linkage language:

This error points to the extern "c" around the kernel. 

What could be the problems?

Thank you

0 Kudos
2 Replies
kmorris
Xilinx Employee
Xilinx Employee
123 Views
Registered: ‎01-11-2011

Is the file extension you are using cpp? Could you show how you have written the code?

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
baring42read
Adventurer
Adventurer
73 Views
Registered: ‎08-28-2019

Hi,

I think  I missed the #include <CL/cl2.hpp>. It seemed to have been resolved.

0 Kudos