This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

#include paths

Im new to uvision and programming and im looking at a project that has some headers as,
#include "..\..\..\swim\lpc_types.h". How do i give it the correct path to the file?..how is "..\..\..\" supposed to define a path?, ive only seen headers included like #include lpc_types.h

Parents
  • Of course Keil supports the relative paths for include. When you fill in the Include Paths box, a compiler command-line option -I "xxx" will be added.
    For an example, if fill as follow:

    ..;..\..\..\StellarisWare
    


    equals to add command-line options:

    -I.. -I..\..\..\StellarisWare
    


    It means include the upper dir of current project, and also include the upper upper upper then \StellarisWare.

Reply
  • Of course Keil supports the relative paths for include. When you fill in the Include Paths box, a compiler command-line option -I "xxx" will be added.
    For an example, if fill as follow:

    ..;..\..\..\StellarisWare
    


    equals to add command-line options:

    -I.. -I..\..\..\StellarisWare
    


    It means include the upper dir of current project, and also include the upper upper upper then \StellarisWare.

Children
No data