Difficulty in including header file


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:

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:

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

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.