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

Remove include path for C/C++ compiler

Hello,
I have one question. In my project I have to use my own library include files. So I don't want the compiler to search these files in default path (includes in keil installation directory).
In the C/C++ tab in my project properties I have these lines (compiler control string):

-c --device DLM -g -O0 --apcs=interwork --asm --interleave -I.\inc -I..\cmm\inc -I..\cmm\lib -I..\cmm\src -I "C:\Program Files\Keil\ARM\INC" -I "C:\Program Files\Keil\ARM\INC\Luminary" -o ".\Obj\*.o" --omf_browse ".\Obj\*.crf" --depend ".\Obj\*.d"

and I just want to remove instruction that are in bold.
Can you help me?
Thanks a lot

Regards,

Ludovic

Parents
  • Hi Ludovic,

    uv4 uses the device database to automatically add the proper configuration for the chosen micro. And it does that also for the include path.

    The only way I found to remove unwanted configurations is to simply chose another device in the menu: Project / Options for Target / Device.

    You may want to choose ARM / Cortex M3.

    However be careful: every setting will change and you have to fill again the values by hand.

    Having say that, what Tamir suggests makes your project work fine even if you still see the annoying directory.

    Regards, Marco.

Reply
  • Hi Ludovic,

    uv4 uses the device database to automatically add the proper configuration for the chosen micro. And it does that also for the include path.

    The only way I found to remove unwanted configurations is to simply chose another device in the menu: Project / Options for Target / Device.

    You may want to choose ARM / Cortex M3.

    However be careful: every setting will change and you have to fill again the values by hand.

    Having say that, what Tamir suggests makes your project work fine even if you still see the annoying directory.

    Regards, Marco.

Children