Having problems when using solver Library from Vitis_Libraries

Hi dear all,

I used vitis HLS 2022.2 and vivado 2022.2 to my object.
I am coding with c++ and tring to use solver from Vitis_Libraries.
there is the Library link:Vitis Solver Library (xilinx.com)

#include "C:\FPGA_CODE\Vitis_Libraries-main\solver\L1\include\hw\svd.hpp"

when I include Header Files and try to run flow, there has error I show in below.
I have no idea with this.
thank you for your attention.

ERROR: [HLS 207-1228] expected unqualified-id (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:357:11)
ERROR: [HLS 207-1219] expected ';' at end of declaration (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:357:11)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:390:4)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:395:30)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:395:57)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:395:59)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:396:30)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:397:28)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:398:30)
ERROR: [HLS 207-3776] use of undeclared identifier 'z' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:399:30)
ERROR: [HLS 207-3776] use of undeclared identifier 'r' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:400:4)
ERROR: [HLS 207-3776] use of undeclared identifier 's' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:401:4)
ERROR: [HLS 207-3776] use of undeclared identifier 'y' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:403:4)
ERROR: [HLS 207-3776] use of undeclared identifier 'r' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:403:8)
ERROR: [HLS 207-3776] use of undeclared identifier 's' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:403:10)
ERROR: [HLS 207-3776] use of undeclared identifier 'y' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:404:33)
ERROR: [HLS 207-3776] use of undeclared identifier 's' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:409:7)
ERROR: [HLS 207-3776] use of undeclared identifier 's' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:414:30)
ERROR: [HLS 207-3776] use of undeclared identifier 's' (C:/Xilinx/Vitis_HLS/2022.2/common/technology/autopilot/hls_erf_apfixed.h:414:57)
ERROR: [HLS 207-59] too many errors emitted, stopping now
1 Like

This looks like a HLS question that you would be better posting on the Xilinx forums.

From the error it looks like a syntactically error somewhere in your code. It may not be in the headers referenced, and in the code before this. If you have your own header file that you include before this, check the syntax of it, perhaps try change the order of includes.
If this doesn’t help I’d suggest you ask on the Xilinx forums.
Cathal

1 Like