Download TR0131 ARM Embedded Tools Reference
Transcript
Tool Options − Linker Linker: −−include−directory (−I) Menu entry − Command line syntax −−include−directory=path,... −Ipath,... Description With this option you can specify the path where your LSL include files are located. A relative path will be relative to the current directory. The order in which the linker searches for LSL include files is: 1. The pathname in the LSL file and the directory where the LSL file is located (only for #include files that are enclosed in "") 2. The path that is specified with this option. 3. The default directory $(PRODDIR)\include.lsl. Example Suppose that your linker script file mylsl.lsl contains the following line: #include "myinc.inc" You can call the linker as follows: lkarm −−include−directory=c:\proj\include −−lsl−file=mylsl.lsl test.obj First the linker looks in the directory where mylsl.lsl is located for the file myinc.inc. If it does not find the file, it looks in the directory c:\proj\include for the file myinc.inc (this option). Finally it looks in the directory $(PRODDIR)\include.lsl. Related information − 5−101