UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 15947

3.1 EDK - How do I pass multiple Include directories to the powerpc-eabi-gcc compiler from XPS?

Description


General Description:

How do I pass multiple directories to the powerpc-eabi-gcc compiler when I am using multiple Include files that are not located under the same directory?

Solution


In the command line:



- To pass multiple Include files that are located in different directories, you must pass multiple "-I" switches to the compiler command line.



For example:



If you are using the following Include files:

file1.h located under ./pathxy/includea/file1.h

file2.h located under ./pathzt/includeb/file2.h



the compiler command line should look like:

powerpc-eabi-gcc <switches> -I file1.h located under ./pathxy/includea/file1.h -I file2.h located under ./pathzt/includeb/file2.h -I ./include



In the XPS Compiler Options window:



- Select the Directories tab.

- In the Include line, enter the following (given the example above):



file1.h located under ./pathxy/includea/file1.h file2.h located under ./pathzt/includeb/file2.h



Please note that the Include directory generated by the LibGen tool is searched by default.
AR# 15947
Date Created 09/03/2007
Last Updated 12/03/2010
Status Archive
Type General Article