Add following ‘include’ commands at the beginning of the file, right before the ‘define’ command. OLD: #define DATA_SIZE 4096 NEW: #include "ap_int.h" #include "ap_axi_sdata.h" #define DATA_SIZE 4096