Difficulty in including header file

Hi,

I am facing the following problem while trying to run a C++ code in Makefile. Please suggest a solution to rectify this:

$ make

ccache g++ -ggdb -fPIC -I/opt/Xilinx/Vivado_HLS/2013.2/Linux_x86_64/tools/systemc/include -I. -I/opt/Xilinx/Vivado_HLS/2013.2/include -mcmodel=medium -lm -llog4cxx -c quadratic_equation_test.cc
In file included from quadratic_equation_test.cc:7:0:
types.h:4:22: fatal error: ap_fixed.h: No such file or directory
compilation terminated.
Where exactly is ap_fixed.h located? Do you know?

Your compiler is telling you it is not in any of these locations:
.
/opt/Xilinx/Vivado_HLS/2013.2/include
/opt/Xilinx/Vivado_HLS/2013.2/Linux_x86_64/tools/systemc/include

Also it would not be in any of these locations given by this command's output:
g++ -print-search-dirs


It looks like one of the compiler includes (types.h) is missing an include (ap_fixed.h). It is possible that your platform/compiler does not have this as part of its standard.

Would you care to post the output of these commands?
g++ -dumpmachine
g++ --version


I did some research:
http://www.xilinx.com/products/design-tools/vivado/index.htm
http://www.xilinx.com/support/documentation/sw_manuals/xilinx2012_2/ug902-vivado-high-level-synthesis.pdf

Apparently this company makes this developer toolkit? They charge thousands for a license so maybe that comes with customer support? Have your tried contacting them?

My guess is ap_fixed.h is somewhere in
/opt/Xilinx/Vivado_HLS/2013.2/

I would recommend executing
find /opt/Xilinx/Vivado_HLS/2013.2 -name ap_fixed.h

And then adding that to you compiler options.
Last edited on
Topic archived. No new replies allowed.