03-25-2019 06:41 AM
I'm new in Xilinx and I tried to make a test project following the instructions for Xilinx SDK creating a c project "Hello world".
As soon as the project is created it gives me errors such as xil_printf.h no such file or directory.
What might be wrong??
03-31-2019 10:56 PM
Xil_printf is not a header file (xil_printf.h does not exist). You need to include "xil_io.h" header file which does include the xil_printf prototype.
11-20-2020 07:40 AM
I have this exact same problem with the 2019.1 SDK, and the error even happens with Xilinx's own helloworld.c application project!
It usually goes like this:
This happens on code that was compiling and running just fine. Usually I have to close SDK, blow away my entire workspace, re-import all my C code, create the new BSP and then things return to normal.
However, I've had to do this about 10 times in the last couple weeks. Any ideas what could be going on?!
03-09-2021 01:15 PM - edited 03-09-2021 03:18 PM
Agreed --- the helloworld.c doesn't build on the Linux version of Vitis, for this reason. xil_printf.h definitely exists, in a variety of directories of the form
... but I don't know if I should just start adding Include directories? The example programs should, well, work. Does anyone know the correct solution?
UPDATE: For fun I just commented out the #include line ... and it worked. Got the "hello world" printouts from the UART. Not at all confident that this is a good solution ... but for the next reader, well, it worked.
Thanks for any advice!